Search Center Site Title
Hi gang,
Changing the title of a site based on the "Search Center" template doesn't change its title in the browser window (ie. the <title> tag).
How can I do this? Do I change it using SharePoint Designer or something?
Cheers,
Matt
[282 byte] By [
mabster] at [2008-2-19]
I dont have a box open in front of me right now but if you go into Site Actions / Site Settings and under Look and Feel " Title, Discription and Icon" you can change it there no? And changing it there will change also the Search Tab name.
Like I said i dont have a site open in front of me so if this isnt working post back and I will have a closer look.
Bob Fox MVP wrote: |
| I dont have a box open in front of me right now but if you go into Site Actions / Site Settings and under Look and Feel " Title, Discription and Icon" you can change it there no? And changing it there will change also the Search Tab name. Like I said i dont have a site open in front of me so if this isnt working post back and I will have a closer look. |
|
Nope. Changing the title under there does indeed change the text on the page itself, but the browser's window title remains "Search Center".
My "search center" site is actually the highest-level parent site of our SharePoint install - ie. it's the site collection's main site. Could that be part of the problem?
Are you talking about the URL?
Bob Fox MVP wrote: |
| Are you talking about the URL? |
|
Nope. The title of my browser window.
Check out this screenshot:
http://www.madprops.org/mabster/pics/searchcenter.png
As you can see, the site's *title* is "QAF Intranet". However, the browser window's title remains "Search Center". Changing the title of the site has no effect.
Hey Mabster,
Sorry for the late response. I now see what you are talking about.... thanks for the attachment. I do recall that there was a way around this but my brain is not giving me access to that currently. Ping me offline and I will try to get an answer for you.
I will post back the results here.
This title comes from the script in the page layout(Searchresults.aspx I think). The page layout has a script like below and the highlighted line below is the one that adds the title
function SetPageTitle()
{
var Query = "";
if (window.top.location.search != 0)
{
Query = window.top.location.search;
var keywordQuery = getParameter(Query, 'k');
if(keywordQuery != null)
{
var titlePrefix = '<asp:Literal runat="server" text="<%$Resources:wss,searchresults_pagetitle%>"/>';
document.title = titlePrefix + ": " +keywordQuery;
}
}
}
-Puneet
Microsoft Sharepoint Developer
Hi Puneet,
Not being an asp.net developer at all, I'm a bit stumped as to my next step from there.
Where do I set the "$Resources:wss,searchresults_pagetitle" variable, from which it's obviously getting the "Search Center" text?
Matt
In the script this is coming from wss.resx file(resource name is searchresults_pagetitle) which will be in the folder associated with the IIS web site. But the supported way will be to copy the page layout and then modify it. Otherwise it can be overwritten during qfe's or service packs.
-Puneet
So I guess the best answer for now (at least for those of us unwilling or unable to get into the bare metal of WSS) is "wait until MS fixes the template"?

Sorry Matt.....
You are kidding me... right? There is no way in the Web Admin to change the tabname?
Let me rephrase - i found this post looking for a way to change the tabname that links to a new site i created (has nothing to do with search center).
Is there a way?
Are you talking about the Site Tab Names or the one in IE 7..... Site Tab changes are stupid simple to change... the past posts refer to another issue.... read above or look at screenshot provided by Mabster