Closed (fixed)
Project:
Views (for Drupal 7)
Version:
6.x-2.11
Component:
Miscellaneous
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
19 Oct 2010 at 09:30 UTC
Updated:
4 Nov 2010 at 13:00 UTC
Hi,
I would like to place the node title in the title of a block, which I created with Views. An example can be seen over here: http://drupal.org/project/views. On the right you see 'Maintainers for Views', where 'Views' is the node title. How can I achieve the same?
Thanks for your suggestions.
Comments
Comment #1
dagmarYou can do this using an argument.
1) Include the Node: Id as an argument of the view.
2) Set in the 'Title' field inside argument configuration the token %1. (%1 will be replaced by the node title, you can set something like: You are reading %1)
3) In the option: "Action to take if argument is not present:": Select: "Provide default argument" and choose "Get node id from URL."Node ID from URL"
Comment #2
jeffreyvddb commentedI tried several things with arguments and I thought that I tried this.. But it works now! Thanks for the help :)