Ask a questionAsk a question
 

AnswerUse Master Page from Layouts Folder

  • Wednesday, November 04, 2009 1:41 PMKrishnan Venkatachalam Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    Hi All,

    I have created a new master page (lots of UI level changes) and placed it in the _layouts folder.

    The placement in _layouts folder is to create a single point of control for this master which will be used across multiple site collections.

    I also want to apply this to default MOSS pages that are there in a site collection.

    The following are my questions:
    1. Can a master residing in the _layouts folder be referred in a site collection?
    2. Can the "~masterurl/default.master" be set to point the master in the layouts folder?

    HTH, Krishnan

Answers

  • Wednesday, November 04, 2009 7:44 PMCathy Dew Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     Answer
    Krishnan,

    I have also done this in the past.  I utilized the Dynamic SharePoint Rebranding Module on Codeplex: http://dsrm.codeplex.com/

    This will allow you with a fairly simple snippet of code to replace the default master page with a custom master page of your choosing.

All Replies

  • Wednesday, November 04, 2009 7:44 PMCathy Dew Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     Answer
    Krishnan,

    I have also done this in the past.  I utilized the Dynamic SharePoint Rebranding Module on Codeplex: http://dsrm.codeplex.com/

    This will allow you with a fairly simple snippet of code to replace the default master page with a custom master page of your choosing.
  • Thursday, November 05, 2009 6:25 AMKrishnan Venkatachalam Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    Hi Cathy,

    Thanks for the response. Let me have a look into it.

    However I do notice one thing, the "Shared Documents" rebranding seem to be applied only from _catalogs folder and not from _layouts :(.

    Let me test this and get back to you.
    HTH, Krishnan
  • Thursday, November 05, 2009 11:18 AMKrishnan Venkatachalam Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    Hi Cathy,

    Thanks so much for pointing sample out. I was able to use the code in codeplex site as base for my changes :D
    HTH, Krishnan