[development] Change menu structure at runtime

Daniel F. Kudwien news at unleashedmind.com
Thu Nov 6 16:50:41 UTC 2008


http://drupal.org/project/menutrails 

> -----Original Message-----
> From: development-bounces at drupal.org 
> [mailto:development-bounces at drupal.org] On Behalf Of Fernando Silva
> Sent: Thursday, November 06, 2008 5:36 PM
> To: development at drupal.org
> Subject: [development] Change menu structure at runtime
> 
> Hi,
> 
> I want to do a "strange" thing with the (Drupal 6) menu system.
> 
> After defining a menu structure, let's assume that it is a 
> "primary navigation", when viewing a node page I want that 
> page to be under a specific menu item in the menu "primary links".
> 
> See this:
> - primary navigation
> -- menu 1
> -- menu 2
> -- menu 3
> ---- node/80 (this will be changed at runtime)
> 
> That "node/80" path will be the child of a menu item, 
> according to some conditionals that I have in hook_nodeapi. 
> So the question is: can I alter the menu structure at 
> runtime, while not changing database or persisting those changes?
> 
> Or perhaps there is another solution...
> 
> Thanks,
>   Fernando
> 



More information about the development mailing list