Hello, I have been searching around the forums but I haven't found anything so far. I'd like to know how to change the titles' link to a view for instance, or to something different than the node itself. I also want to know if it's possible to make them unlinkable.

The most desired result is that when someone clicks on a title of my front page, it takes them to a view where besides the node itself, they can have several nodes related to what I specify in the view.

Has anyone been able to do this?

Thanks drupal community!.

Comments

webchick’s picture

Project: Drupal core » Views (for Drupal 7)
Version: 5.2 » 5.x-1.x-dev
Component: node system » Miscellaneous

This sounds like something the Views folks might be able to help you with more.

merlinofchaos’s picture

Status: Active » Fixed

Titles of what? Nodes? You can make those links in node.tpl.php. Or if it's the title of the page, that'd be in page.tpl.php.

thebrotherofasis’s picture

Status: Fixed » Active

Yes, it is the title of the nodes the ones I would like to change to be directed to a specific view.

Now that I took a look at node.tpl.php I saw that I could fairly easy tell drupal not to link my titles to anywhere. However, the question of how to make the node title link to a specific view, would be much more complex to figure, since I don't know how to tell drupal to php print or get the url of the specific view, as for instance, organized by taxonomy.

Is this an uncommon wish? :)

Thank you very much anyway.

merlinofchaos’s picture

Status: Active » Fixed

This is highly uncommon.

In your node.tpl.php you'll have to load the view you want ($view = views_load_view('name_of_view');) and then get its url ($url = views_get_url($view)) and then do with it as you wish.

thebrotherofasis’s picture

ok, I will try that. Thank you.

Anonymous’s picture

Status: Fixed » Closed (fixed)