Custom master page for extended site
-
Wednesday, May 16, 2012 1:16 PM
Hi,
I am using sharepoint 2010, i created new publishing site and i extended the same for intranet.
but here i want to use different master page for my extended site. i tried a lot, but no solution.
Please help me out.
Thanks,
Hari
Hari
All Replies
-
Wednesday, May 16, 2012 1:21 PM
Hi Hari, as far as I know you can't do that without writing some code.
Cheers
Riccardo -
Wednesday, May 16, 2012 1:25 PM
Hi Riccardo,
Please do let me know , what is that some code, i would really helpful to me.
Hari
-
Wednesday, May 16, 2012 1:27 PMWhen you extend a web application in SharePoint you share the content database. The settings for the web page are part of that database, so there is no easy way to have a different master page for the same site in different extended zones.
Paul Stork SharePoint Server
MVP Senior Solutions Architect: BlueChip Consulting Group
Blog: http://dontpapanic.com/blog
Twitter: Follow @pstork
Please remember to mark your question as "answered" if this solves your problem. -
Wednesday, May 16, 2012 1:36 PM
I'm sorry Hari, I'm not a developer I can't help with this.
Cheers
Riccardo -
Wednesday, May 16, 2012 1:44 PM
Thanks Paul,
could you please suggest me any other option?
Hari
-
Wednesday, May 16, 2012 4:03 PM
You need to write an event handler for the page class that each page inherits from. You have to put code in the OnPre-Init event as I remember to change the master page reference based on the Http request.Paul Stork SharePoint Server
MVP Senior Solutions Architect: BlueChip Consulting Group
Blog: http://dontpapanic.com/blog
Twitter: Follow @pstork
Please remember to mark your question as "answered" if this solves your problem.- Marked As Answer by Emir LiuMicrosoft Contingent Staff, Moderator Thursday, May 24, 2012 3:05 AM

