1

I have a Search view that uses the Filter: Search terms.

I've tried using <?php print arg(0); ?> in the header, but that only returns the view url (search).

How do I get the value of the query key /search?keys=term to be able to use it as a token in a Global: Text area in the Header?

My header title would be something like : Results for [search term]

2

$_GET['keys'] should give you the term value.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.