[Resolved] Set same bar across network?
I know you have developed the plugin to provide a global menu to super admins but is there a way to set a fixed menu for all admins in a network so they cannot change the menu?
Thanks in advance.
Thank you for your feedback, much appreciated!
I think I can implement this additional feature, if I understood correctly.
Only for Multisite Network installs, only for regular (site) administrators and fixed position, right?
And do you mean global or on a per site basis?
Since I am currently not planning on adding an options page for the plugin, I would disable such a feature as you suggest by default.
It then could be activated with one line of code, like so maybe:
define( 'MSTBA_SITE_ADMINS_NAV_MENU', TRUE );
Ok with that?
Another question, which menu position in the toolbar do you suggest? — Any value handy, or a screenshot where you want to place it by default?
Thanks, Dave 🙂
I do not think I made myself clear. What I have been trying to accomplish is a global menu set by the super admin that all site admins see and use but cannot alter via the set menus page. I guess what would be nice is a Global Menu option in the main site for the Super-Admin. I added a screenshot but I think you know what I’m asking for.
And thanks for the quick response! Great support!
Thanks for your feedback and clarifications, this is really helpful!
I guess I got it now 🙂
Sounds like a great idea, and I will implement that. I think it makes sense to have it enabled by default, but I make a constant or filter to optionally turn it off…
I cannot promise to add it to the next update (which is mostly done in development), but I guess the update after that will be fine 🙂
Thanks, Dave 🙂
Thanks for your patience, been a long time, I know 🙂
The feature we were talking about above is now implemented in version 1.7.0!
That means, out of the box you can now:
– Use any existing or new custom nav menu
– Apply it to menu location “Restricted Site Admin Menu (Toolbar)”
– Setup and editing of menu is only for super admins – once the menu is applied to the menu location!
– Menu itself is viewable for admins (and super admins)
The feature is only there in Multisite installs!
Feature could be disabled via constant, if needed. Or you just don’t use it, so only the menu location keeps visible for super admins, nothing else 🙂
I hope you like it.
Thanks, Dave 🙂
Wow Dave I’m going to check this out right away!
Thanks so much!
When assigning a menu to the network I am only seeing it in the network and main site dashboard as superadmin, its not even showing in my personal subsites.
I have not had time to check for plugin conflicts, but i will report back.
Yes, you are right, to be honest, it was this way from the start also with the super admin menu. I am really regretting this, I was aware of it in the first time of the plugin, but somehow oversaw it in recent testing, sorry!
Technical background: It’s not my fault, problem is, that WordPress currently has no way to globally – i.e. Network wide – share nav menus and other stuff. So, WordPress just does not know what each site in the Network has menus, or anything else. It’s just not connected, so the Toolbar does not know in sub site 2 what your menu was in sub site 5 or in the main site…
I’ve recently discovered a workaround and try to implement this in one of the next versions. It’s really a limitation of WordPress core & Multisite right now. Which is really, really sad, as a lot of people want that, even for frontend menus and other stuff.
For the moment I can’t do much about this, however, I will make it a bit clearer in description…
I hope my friend can help me to implement the workaround, which tries to virtually sync/copy the existing menu from the main site to the sub site. This is currently the only way to achieve that. The “switch_to_blog()” function is performance heavy and therefore I don’t want this – what the Multisite experts also recommend.
Sorry for all that in the moment, I hope to have some solution soon.
Thanks, Dave 🙂
Thanks for the clarification.
Just a side note, WPMUDEV has a plugin for a custom admin bar that allows custom links set across a network. The only problem is, it sets one top level and then you can add as many in the drop down as desired. It seems to me that you should be able to work off that code? Or maybe I’m way off base. 🙂
Yes, I know that plugin, but never liked it…
The goal with mine was to use the custom menu system to achieve this – which gives way more flexibility and benefits. Problem is just the global availability…
I will work further on this, though I cannot name any timeframe for that.
Also, on a side note, I have 2 user groups with Multisite:
One group uses it for just having a lot of sites under one install, but sub sites are not connected, so they want/need no global menu…
The other group has a Multisite with sub sites that are similar or in some way connected and those want a global menu…
Thanks again for your feedback and patience. I will do my best to make any progress 🙂
- The topic ‘[Resolved] Set same bar across network?’ is closed to new replies.