[development] displaying all menus regardless of access
brian at brianvuyk.com
Mon Jun 15 03:15:56 UTC 2009
With respect to the first part of your post, there is one way I can
think of to accomplish this:
If you create each menu item as an absolute link (e.g.,
http://www.example.com/node/1), it bypasses the access checks. This is
technically a bug; it's in the tracker, and will likely be fixed for D7.
However, it works for now.
It would be nice to see an option for menus such as 'Hide links
unavailable to user' or similar that allowed the access-based showing
and hiding of menu items.
Web Design & Development
brian at brianvuyk.com | http://www.brianvuyk.com
On 06/14/2009 04:32 PM, Ashraf Amayreh wrote:
> Hello all,
> I guess my question is pretty simple. I've run into a scenario where a
> site wants all primary menu items to show up regardless of access
> rights. When a user clicks on the menu item, he would get a message
> saying he needs to register to see this page. Is this possible at all?
> I know that the primary menu items disappear when they're inaccessible.
> I guess the 2nd part of the question is, my module for 5.x used to
> render the complete menu (honoring menu access rights) to create a
> DHTML menu. But now in Drupal 6 it seems there's no way to get inside
> collapsed menu items. Am I missing something? How can I get the full
> tree rendered regardless of its state (collapsed or not)?
> Ashraf Amayreh
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the development