mabster

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



Re: SharePoint - Search Search Center Site Title

Bob Fox MVP

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.






Re: SharePoint - Search Search Center Site Title

mabster

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





Re: SharePoint - Search Search Center Site Title

Bob Fox MVP

Are you talking about the URL




Re: SharePoint - Search Search Center Site Title

mabster

 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.





Re: SharePoint - Search Search Center Site Title

Bob Fox MVP

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.






Re: SharePoint - Search Search Center Site Title

Puneet Narula

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





Re: SharePoint - Search Search Center Site Title

mabster

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





Re: SharePoint - Search Search Center Site Title

Puneet Narula

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





Re: SharePoint - Search Search Center Site Title

Bob Fox MVP

Excellent Answer Puneet.




Re: SharePoint - Search Search Center Site Title

mabster

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"



Re: SharePoint - Search Search Center Site Title

Bob Fox MVP

Smile Sorry Matt.....




Re: SharePoint - Search Search Center Site Title

bryanandrews

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





Re: SharePoint - Search Search Center Site Title

bryanandrews

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





Re: SharePoint - Search Search Center Site Title

Bob Fox MVP

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