Sharepoint customization: A Quick Tip

Posted on 10/14/2006 @ 4:22 AM in #SharePoint by | Feedback | 4169 views

Problem description:
You would note that as you modify the master page for your web app, only portions of the web application adapt the newly customized master page. This sucks because the entire admin area of your site still insists on a sharepointy look and feel.

This is because a major portion of the site uses Appmaster.master. But changing Appmaster.master ends up screwing every other web application on the physical machine - what a yucky choice.

Problem solution:
The best solution to this problem is, modify the definition for each virtual directory in the web application you are trying to customize. For instance, change _layouts to point to

\Program Files\Common Files\Microsoft Shared\web server extensions\12\TEMPLATE\LAYOUTS\MyCustomizedStuff

instead of

\Program Files\Common Files\Microsoft Shared\web server extensions\12\TEMPLATE\LAYOUTS

and then do a copy paste from \Program Files\Common Files\Microsoft Shared\web server extensions\12\TEMPLATE\LAYOUTS

to

\Program Files\Common Files\Microsoft Shared\web server extensions\12\TEMPLATE\LAYOUTS\MyCustomizedStuff

Lather, rinse, repeat for all virtual directories - and bingo - you now have a clean system working that can serve multiple websites.

SHWEET!!

Sound off but keep it civil:

Older comments..


On 12/6/2006 2:28:07 PM Robert Biggs said ..
I was hoping you would detail how to point _layouts to the customized directory. I suppose you mean in the site definition. Could you give an example?


On 12/7/2006 12:27:12 PM Sahil Malik said ..
Robert -

You would do that under control panel -> administrative tools -> IIS Manager.

Sahil


On 4/4/2007 6:18:37 AM Renatas said ..
Excellent! To mitigate problems that can occur during upgrades, short script can be written, which will regularly copy updated _layouts to MyCustomizedStuff and overwrite application.master once again.


Good article. Thanks.


On 6/1/2007 3:30:56 PM part said ..
Is this supported ??


On 10/12/2007 4:58:53 PM peter said ..
"The best solution to this problem is, modify the definition for each virtual directory in the web application you are trying to customize."


I only have one _layout virtual dir in my IIS. When is another virtual directory for a web application created in Sharepoint Server?