[drupal-support] menu block and viewing nodes

Gerhard Killesreiter killesreiter at physik.uni-freiburg.de
Sun Jan 23 21:16:55 UTC 2005



On Sun, 23 Jan 2005, Todd Howard wrote:

> Couldnt find anything on this ... I'm using multiple vocabularies
> with a menu associated to each one. I want to only show one menu
> block at a time. So I defined the menu blocks path with the
> appropriate taxonomy/terms, i.e., <term/(1|2|4|86|107)>. Just one
> problem, the menu block goes away when a node is viewed. This makes
> sense because the URL is for a node and not a term. Really would
> like to have the menu block available when viewing a node that is in
> the appropriate term. Any other methods available?

This is a bit difficult. What you could do is to define an alias for
each node that is associated to the term it has, eg term/13/node/123 and
change your regexp to allow for optional futher arguments is the path.

This is not too convenient as you can only add the alias after creating
the node, but if there aren't too many nodes it might be acceptable.

Another option would be to create a custom php block that gegerates the
menu only if either the term or the node matches.

Cheers,
	Gerhard




More information about the drupal-support mailing list