By fgaudin on
Hello,
I've really searched the forum, the doc, and either I can't get solutions to work, either it was not exactly what I was looking for.
I've created a view with the "view" module to display news on the website. The path to this view is : Home > news
But when I click to read the entire news, the node is not related to its parent. I want to to activate the "news" link when I'm on a page tagged "news".
I've already managed to find if a node is tagged "news" but $secondary_links is empty and I can't find how to force to make as if it were on the page "news".
Thx for any help.
Comments
This is what I'm doing
I was looking for an answer to this same question, so this is what I'm doing, although I don't know whether there is a better way of achiving this.
I'm adding a new _phptemplate_variables($hook, $vars) function in my template.php file. This is it:
I hope this is self explanatory enough.
---
Robert Garrigos
Professional site: robert.garrigos.cat
Catalan Drupal Users Group: drupal.cat
Even easier
Put this in the template file for your node type for news. Let's say this is node-story.tpl.php. Add this at the beginning of that file:
---
Robert Garrigos
Professional site: robert.garrigos.cat
Catalan Drupal Users Group: drupal.cat
mmmm I'm loosing the tabs
mmmm I'm loosing the tabs when using this......
Any solution?
---
Robert Garrigos
Professional site: robert.garrigos.cat
Catalan Drupal Users Group: drupal.cat
Try the MenuTrails module
This worked for me...
http://drupal.org/project/menutrails
subscribing...
subscribing...
Durval Tabach