By Anonymous (not verified) on
Hi All,
I am trying to figure out how I can change the title of the search page - "Search" to say something else (not the search results page, but the standard search node page). I'm actually using the search as a "Find" specific functionality and I want the title of the page to reflect that.
I know there are some modules like Node Titles, but they don't seem to include the Search page as a changeable node. I looked through the search.module, but I'm assuming that the actual search page is inheriting the "Search" title from the previous call.
Any help would be very much appreciated.
Thanks,
Joseph
Comments
You can override specific
For D6 you can override specific strings in the settings.php for your site, right at the bottom of the file or by using the string overrides module (available for both D5 and D6).
I looked at string overrides module, but...
I looked at string overrides module, but it doesn't appear to support the "Search" pages - it does support every other type of node though.
Also, if it somehow does support the "Search" page then how could you override just the word "Search" to something else. It would seem like it would change every instance of the word "search."
Thanks,
Joseph
_
afaik, string overrides supports anything passed through the t() function. It doesn't know from nodes vs search. But yes, it would change every instance of t("Search")-- wherever it appears.
===
"Give a man a fish and you feed him for a day. Teach a man to fish and you feed him for a lifetime." - Lao Tzu
"God helps those who help themselves." - Ben Franklin
"Search is your best friend." - Worldfallz
Can't Use String Overrides on Node Titles
Unfortunately you cannot use String Overrides on node titles. Here's a snippet from the help:
Places where %, @, or ! are used means that the translation contains dynamic information (such as the node type or title in the above examples), these are not translated while the text around them are.
Would still like a solution. Any solution.
Thanks,
Joseph
Just to clarify...
Joseph,
you are talking about the search page you get after enabling the core search module, the page at www.example.com/search, right?
If so that page is not a node and the title doesn't contain any dynamic content.
String overrides doesn't look for words in strings, it matches on complete and case sensitive strings. If you set "Search" as the string to be overridden the module looks for the string t("Search"), that's it. It wouldn't override t("search") or t("Search this site") etc.
You can use the string overrides module. I tested it out today, just to double-check.