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]
# 1

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.

BobFoxMVP at 2007-9-12 > top of Msdn Tech,SharePoint Products and Technologies,SharePoint - Search...
# 2
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?

mabster at 2007-9-12 > top of Msdn Tech,SharePoint Products and Technologies,SharePoint - Search...
# 3
Are you talking about the URL?
BobFoxMVP at 2007-9-12 > top of Msdn Tech,SharePoint Products and Technologies,SharePoint - Search...
# 4

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.

mabster at 2007-9-12 > top of Msdn Tech,SharePoint Products and Technologies,SharePoint - Search...
# 5

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.

BobFoxMVP at 2007-9-12 > top of Msdn Tech,SharePoint Products and Technologies,SharePoint - Search...
# 6

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

PuneetNarula at 2007-9-12 > top of Msdn Tech,SharePoint Products and Technologies,SharePoint - Search...
# 7

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

mabster at 2007-9-12 > top of Msdn Tech,SharePoint Products and Technologies,SharePoint - Search...
# 8

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

PuneetNarula at 2007-9-12 > top of Msdn Tech,SharePoint Products and Technologies,SharePoint - Search...
# 9
Excellent Answer Puneet.
BobFoxMVP at 2007-9-12 > top of Msdn Tech,SharePoint Products and Technologies,SharePoint - Search...
# 10
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"?
mabster at 2007-9-12 > top of Msdn Tech,SharePoint Products and Technologies,SharePoint - Search...
# 11
Smile Sorry Matt.....
BobFoxMVP at 2007-9-12 > top of Msdn Tech,SharePoint Products and Technologies,SharePoint - Search...
# 12

You are kidding me... right? There is no way in the Web Admin to change the tabname?

bryanandrews at 2007-9-12 > top of Msdn Tech,SharePoint Products and Technologies,SharePoint - Search...
# 13

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?

bryanandrews at 2007-9-12 > top of Msdn Tech,SharePoint Products and Technologies,SharePoint - Search...
# 14
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
BobFoxMVP at 2007-9-12 > top of Msdn Tech,SharePoint Products and Technologies,SharePoint - Search...

SharePoint Products and Technologies

Site Classified