Using alternate header in ONET.XML

June 5, 2004 at 2:37 am | Posted in SharePoint, SharePoint 2003 | 2 Comments

Serge has written a lot of detail on using the AlternateHeader parameter in ONET.XML. This is the best way to customise those hundreds of admin pages in the _layouts directory.

http://weblogs.asp.net/soever/archive/2004/06/01/145831.aspx

Unfortunetly AlternateHeader doesn't customise the web part pages or the list pages, which are of course the pages that make up 99% of the site for the average user. Unless I've missed a trick of course, let me know!

To assist in editing the ONET.XML file, and those templates, here are a few pointers.

When editing the NAVBARS elements, an iisreset will be required to see the change.

When editing the top PROJECT element, no amount of restarting will pick up the changes, the AlternateHeader, CustomJSUrl, and AlternateCSS parameters are grabbed at the point the site is created, so you can't change a site that already exists…

When editing files that the parameters point to, or editing the .aspx templates for the web part pages and list pages, no restarting required at all, the changes are immediatly live!

remember changes in these areas will be the first to get over written by service packs and the like, so think about your changes carefully..

Advertisements

2 Comments »

RSS feed for comments on this post. TrackBack URI

  1. But is there any way where I can change the home page of portal server and all following site pages ( not my sites) will have the same. I tried the alternateheader, but I don’t know where I made the mistake non of the pages got chaged or no changes error happend also. no change.
    Any clues ?

    Thanks

    Sunil

  2. I’d forgotten that the AlternateHeader element needed to be done prior to creating the website. What a pain!

    One way around this (not recommended by Microsoft) is to go into the database and alter the site record itself …


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Blog at WordPress.com.
Entries and comments feeds.

%d bloggers like this: