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

dagmar’s picture

Status: Active » Fixed

You 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"

jeffreyvddb’s picture

I tried several things with arguments and I thought that I tried this.. But it works now! Thanks for the help :)

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.