RE: [development] Question on hook_menu in cvs.
So that means that you simply cannot create or reposition, or make optional any menus that have logic in them? (which therefore cannot be cached?) What I'm ultimately reaching for is to be able to have a menu item only appear if the user is not logged in, and give the site administrator the ability to attach this menu to primary links, etc. Am I thinking about this problem wrong? Is there another way to achieve the same functionality? -----Original Message----- From: development-bounces@drupal.org [mailto:development-bounces@drupal.org] On Behalf Of Gerhard Killesreiter Sent: Wednesday, September 20, 2006 10:14 AM To: development@drupal.org Subject: Re: [development] Question on hook_menu in cvs. Metzler, David wrote:
In the process of updating my cas module. Having trouble implementing
a non-cachable "suggested" menu item.
I've been working with this code and I can't get the non-cached entries to show up in administer menus? Anyone know if this is by design?
Yep, by design. Cheers, Gerhard
Metzler, David wrote:
So that means that you simply cannot create or reposition, or make optional any menus that have logic in them? (which therefore cannot be cached?)
The conclusion is invalid. :p
What I'm ultimately reaching for is to be able to have a menu item only appear if the user is not logged in, and give the site administrator the ability to attach this menu to primary links, etc.
Am I thinking about this problem wrong? Is there another way to achieve the same functionality?
Yes, there is: Look at the "user" path and how it is handled. Cheers, Gerhard
participants (2)
-
Gerhard Killesreiter -
Metzler, David