Saturday, June 05, 2004

Using alternate header in ONET.XML

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..

3 Comments:

Anonymous Anonymous said...

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

8:51 am  
Blogger Falkayn said...

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 ...

2:08 am  
Anonymous Anonymous said...

I don't know if this is relevant, there is a Property called 'AlternateHeader' of the SPWeb object. This property is updateable. This will work if you are trying to update an old site.

1:25 pm  

Post a Comment

<< Home