Closed (fixed)
Project:
Views (for Drupal 7)
Version:
5.x-1.x-dev
Component:
Miscellaneous
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
14 Sep 2007 at 02:21 UTC
Updated:
4 Oct 2007 at 00:11 UTC
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
Comment #1
webchickThis sounds like something the Views folks might be able to help you with more.
Comment #2
merlinofchaos commentedTitles 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.
Comment #3
thebrotherofasis commentedYes, 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.
Comment #4
merlinofchaos commentedThis 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.
Comment #5
thebrotherofasis commentedok, I will try that. Thank you.
Comment #6
(not verified) commented