Jump to content
Gadgetto

Custom ProcessModules under menu "Setup" - better alternatives?

Recommended Posts

Can anyone tell me what's the deeper reason for putting custom ProcessModule menus under "Setup"? It kind of feels wrong... especially for full featured Apps like my upcoming SnipWire.
Wouldn't it be better to have a dedicated "Extras" menu or something else?

I know I can place the menu entry for my module wherever I like, but I think we need a better standard.

How do you think about this?

Share this post


Link to post
Share on other sites
23 minutes ago, Gadgetto said:

I know I can place the menu entry for my module wherever I like, but I think we need a better standard.

What do you mean with "better standard"? You can move your custom process module within 2 seconds. That's not really too cumbersome, isn't it?

admin-folder.PNG.4ec00083056313d1bb0d1b10683b8ce7.PNG

In this example, dashboard + forms are top-level links in the admin, not under "setup".

The "default standard" prevents breaking the top-level admin links to have too many items and therefore maybe breaking the navigation (visually, i.e. two or three rows instead of just one).

  • Like 1

Share this post


Link to post
Share on other sites

Honestly I don't think that there's any deeper meaning here. Setup is always available and generic enough to contain different types of things. That's just about it.

We could probably figure out some other "generic parent", but personally I'm OK with "Setup" -- though I do see your point, and do think that it's a valid concern 🙂

  • Like 1

Share this post


Link to post
Share on other sites

I kind of like it as we set things up there.

A few years ago I didn't like the global use of page for absolute everything and the menu label setup... but nowadays it feels weird to have a global settings page/area as in WordPress or things like posts and pages.

Maybe you can add your SnipWire (page) into the navigation bar next to setup somehow.
And as far as I know is your module quite huge and almost a standalone version of ProcessWire... it would make perfectly sense to add it to the top bar.

Disclaimer: yes... I'm sometimes weird, confused and do things differently.

  • Like 1

Share this post


Link to post
Share on other sites

Thanks for your infos guys!

I'm probably still much too deadlocked from my MODX time. ProcessWire just makes things different and that's good!

Share this post


Link to post
Share on other sites

The term "Setup" doesn't make much sense to me either for things other than Templates and Fields and perhaps others like Languages etc. But the nice thing is that you can rename Setup to something else if you want, or move any of it's children out to the top level, or under another parent you might create, perhaps called "Tools" or whatever you want.

Share this post


Link to post
Share on other sites

I think it's great to have all modules under "Setup" for Superusers and for clients on bigger sites/apps you can separate modules into several sections:

STU9o1i.png

  • Like 1

Share this post


Link to post
Share on other sites

@bernhard do you mean we can have different menu structure for admins and clients? This would be great!

Share this post


Link to post
Share on other sites

No, but on a second thought I got that my screenshot is not exactly answering your question... A shop module could totally make sense in a separate tab (menu item) even for superusers. I'd have to think more about that. A quick idea would be a redirect module that adds custom menu items for some users that actually live somewhere else? I think AOS has a similar feature.

Share this post


Link to post
Share on other sites
1 hour ago, Gadgetto said:

different menu structure for admins and clients

You can easily change the order with CSS flexbox, i.e. place a custom link first, before pages. Together with the body role- classes, it would be a breeze to re-arrange the order (or perhaps use a different styling).

A quick-and-dirty example:

body.role-nonsuperuser li.page-10065- {
	flex: 1;
	order: -1;
}

body.role-nonsuperuser #pw-masthead .uk-navbar-nav> li.page-10065- a {
	font-size: 1.5em;
	color: yellow;	
	font-weight: 800;
}

page 10065 is a custom dashboard page here, and with the first two CSS statements it puts the dashboard link first, and pages etc. after that - only for non-superusers.

Share this post


Link to post
Share on other sites
16 hours ago, dragan said:

You can easily change the order with CSS flexbox, i.e. place a custom link first, before pages. Together with the body role- classes, it would be a breeze to re-arrange the order (or perhaps use a different styling)...

Hmm.. this feels a bit like a hack for me. And it doesn't work for sub-menu entries.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...