Display a selected tag's name on search result page.

Permalink
Hi All,

Anyone know how to do this?

I have a bunch of tags set up and if you click on one, it redirects you to the search results page. Which is great. I'm wondering how I would go about displaying the name of the tag itself on the results page - so I could display it in the body copy.

For instance: Someone clicks on the tag 'Green Chilis'.
The results page would have the header: Tagged In: 'Green Chilis'.

Any thoughts appreciated.

juddc
 
juddc replied on at Permalink Reply
juddc
*Bump*
webpresso replied on at Permalink Reply
webpresso
Hi
I hope i understand it right.
In your blocks/search/view.php:
<?php echo t('Tagged In: ')?>
<?php echo htmlentities($query, ENT_COMPAT, APP_CHARSET)?>
juddc replied on at Permalink Reply
juddc
Thats the idea, though it didn't seem to want to work for me :(
lewismcarey replied on at Permalink Reply
Can you output the parameter from the URL?

<?php echo $_GET['query']; ?>
JohntheFish replied on at Permalink Reply
JohntheFish
I think there is an addon that does something like that. Can't remember its name.