Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
By cinquetooty on
So I need to tell a view template about the $node->title of the page that called the view so I can pick a certain flavour of graphic for use in the view.
I've tried 'global'ising the value and picking it back up in views_list_myfancyview.tpl.php - but I guess the code isn't evaluated how I imagine it is and the variable is null.
I only want to tell the view template the single value of $buttColour - but I can't see how it's done.
Thanks for any help you can offer.
Ian
Comments
Ooops
I tried global again and it worked!
Ian