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.
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.
*Bump*
Hi
I hope i understand it right.
In your blocks/search/view.php:
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)?>
Thats the idea, though it didn't seem to want to work for me :(
I think there is an addon that does something like that. Can't remember its name.