Steve Kessler ha scritto:
I have a view that is made up of a collection of document nodes that have a node reference to a container that is a central topic with content. My developer and I have the content presented properly but right now we use NID as the linking property and the argument that holds it all together. I want the title of the view to be the title of the container node. Any thoughts on how to do this. I hope this makes sense and that someone can help because I have spent quite some time looking for a solution and trying to build one with Views.
Hi, I think that you have an url like this "/foo/123" where 123 is the "nid" that you use for view's argument and for "title of the view" you mean title of the page.
Ok, now edit the view, go in the "page" display (I think that you use this type of display), "Basic settings" and click on "Header: None".
In the textarea write:
<?php $node = node_load(arg(1)); drupal_set_title(check_plain($node->title));
?>
For Input Format use "PHP code".
M.