Im running a Magento 1.9 Online Shop and I want to use a customized search site.
I created a CMS Page "search.html" in the backend.
This site includes a Search Form via .phtml file with some PHP Code inside. If you search for your keyword, the URL becomes "domain.de/search.html?query=KEYWORD".
I need to set the KEYWORD, if given, as Meta Title and Description Tag of my search page with PHP.
Today I spend 6 hours looking for a solution. Unfortunately im a Magento Newbie. I think the best way for me is to use my PHP Code in "head.phtml" file to change the Page Title and Description.
Is there a way to replace the "head.phtml" file of my template only for this one special Magento CMS Page? (so the rest of my template remains untouched)
Thanks!
Please take a look this answer. That's one is step by step what you have done for override head.phtml. Hope this help!