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?
Thanks for the help !!! Todd
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
Gerhard Killesreiter wrote:
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
I was afraid of this, I'm actually going to have do some work. Regarding define an alias for each node ... too many nodes will be created. It probably will have to be a custom block/menu. It seems like this should be a fundamental behavior, though given the current framework, no easy solutions ...
Thanks for the confirmation !!! Todd
On Sun, 23 Jan 2005, Todd Howard wrote:
Gerhard Killesreiter wrote:
On Sun, 23 Jan 2005, Todd Howard wrote: Another option would be to create a custom php block that gegerates the menu only if either the term or the node matches.
I was afraid of this, I'm actually going to have do some work. Regarding define an alias for each node ... too many nodes will be created. It probably will have to be a custom block/menu. It seems like this should be a fundamental behavior, though given the current framework, no easy solutions ...
Maybe this feature could be implemented as a patch against the taxonomy_menu module.
Cheers, Gerhard
Hi, I have a drupal website, www.chintha.com and i am displaying two nodes per page. I have my google adsense code in the node.tpl.php template and a google ad is displayed at the bottom of every node. Now instead of displaying an ad for both the nodes in a page, i want to display an image at the bottom of the first node. So the page will have in sequence: "first node+links, an image, second node+links, google ad" How can i achieve this?
thanks, Paul, www.chintha.com
On 06 Feb 2005, at 11:21 PM, Paul wrote:
Hi, I have a drupal website, www.chintha.com and i am displaying two nodes per page. I have my google adsense code in the node.tpl.php template and a google ad is displayed at the bottom of every node. Now instead of displaying an ad for both the nodes in a page, i want to display an image at the bottom of the first node. So the page will have in sequence: "first node+links, an image, second node+links, google ad" How can i achieve this?
Follow the bottom example here : http://drupal.org/node/16383
In your node.tpl.php , have a section that goes :
<?php if ($seqid == 1) : ?> <img src="image.jpg" /> <?php endif; ?>
-- Adrian Rossouw Drupal developer and Bryght Guy http://drupal.org | http://bryght.com