yes you are right. But when i want just a menuitem to be hidden i have to put it in a separate menu without a module. But what if i want to have the url accessable to everyone, put it in a existent structure but not showing the item in the frontend?
For example a link to an application form which should be only accessable from a content text link but as well should have a nice url.
Already answered: Also menu items can be made invisible by setting access to a level not given to anybody.
There is an extension you can use for this from @betweenbrain
http://extensions.joomla.org/extensions/extension/structure-a-navigation/menu-systems/menu-wrench
On 7 October 2015 at 23:14, sovainfo notifications@github.com wrote:
Already answered: Also menu items can be made invisible by setting access
to a level not given to anybody.—
Reply to this email directly or view it on GitHub
#8032 (comment).
Brian Teeman
Co-founder Joomla! and OpenSourceMatters Inc.
http://brian.teeman.net/
The quirk with that nobody group is you might inadvertently make it unmanageable too. That's the only thing that I'd be concerned with going that route.
No, the access level only applies to visibility, the visibility of the menu item! Nothing to do with what it is pointing to!
Obviously, you could restrict it to Super users, to keep it manageable.
I forget if it was on the forum or a thread here but there was a recent post where someone pointed out that if you assigned items to an access level that the Administrator user group wasn't a member of, even though by ACL they could edit the item, it didn't show up where they expected it to. That's where my comment was based from.
@sovainfo i don´t know if we are talking about the same things. I just gave a meuitem the accesslevel "registered" and when i point to the url the item had a login screen appears. like expected. wouldn´t make any sense other way for me.
The module @brianteeman recommended does exactly what i´m talking about (and more) - so maybe it´s even not a feature which is missing in the menuitem-manager but in the mod_menu.
Apart from the fact that doesn't make sense to me, it is the way Joomla works, when using an url you are not authorized to use. Using the url the menu item is pointing to gets you to the data provided you have access to it. When you don't like that url, move the menu item to a menu not presented to the frontend.
Suggest to wait for the new routing options, advice against this change to the menu system.
it is not so bad suggestion, sometimes I also miss for this feature
@sovainfo it is have a sense, if need to get a nice URL, similar as in example from @designbengel
You can also achieve this by applying a class to the menu item to make it invisible. I regularly do that for the Home menu
you can do a link class like menu-hidden and then just do a
header ul.nav.menu li a.menu-hidden {
display: none;
}
or the likings depending on your template structure.
but hidden menu would be just as easy a way to do it instead of menu's not assigned to any modules
i have not tried the menu wrench module, and do not know if this is better or not than the simple css hide way.
if you want it totaly removed from the html, you could do a simple jQuerue('ul li.menu-hidden').parrent().remove(); which should remove it (this is untested)
the advantages of this, is that google should be able to index them, unless you have set the noindex parameter for the items, as they are in the html code, when google loads the page, which they are not in the hidden menu function.
Status | New | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2016-01-28 11:48:47 |
Closed_By | ⇒ | brianteeman |
Closing this as PR #8814 has been merged which does this
Consider "hidden menu" bad jargon from the past. That was when Joomla created a module when creating a menu. That doesn't happen anymore, menu's are hidden, (not shown in the frontend) unless you create a module that publishes it properly ( positions and context (menu items)).
Also menu items can be made invisible by setting access to a level not given to anybody.