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.
Hello,
I want to store a value of an exposed filter in a variable.
In my view-view...tpl.php file I get my value with this code :
$view = views_get_current_view();
$viewArgs = $view->exposed_input['field_my_field'];
But I can't use this var outside of the my view-view...tpl.php template. I want to use this var in a node template.
I have tried to create this temporary variable in the template.php without success.
Have you any idea to create this var in my template.php ?
Thanks for your help.
Comments
Comment #1
MustangGB CreditAttribution: MustangGB commentedClosing this as outdated to tidy up a bit around here. If you're still having problems with the latest release please create a new issue.