Scenario:
We wanted to have a more fancy master page for our login page, being the first page users hitting the site. Out of box login page uses Simple.master which is very basic, so we designed a new master page ( newsimple.master ). Now how to consume it.
Solution:
1. We could have back-up login page and point the exisiting one to new master page.
2. Another option is attaching the new master page using Web.Config, I will say this was much cleaner approach.
Navigate to 12HIVE > Templates > Layouts > Edit Web Config and add following lines in Web.Config
Code:
<configuration>Article:
<location path="login.aspx">
<system.web>
<pages masterPageFile="~/_layouts/newsimple.master" />
</system.web>
</location>
</configuration>
http://blogs.msdn.com/webdevelopertips/archive/2008/12/31/tip-40-did-you-know-how-to-scope-master-pages.aspx
0 comments:
Post a Comment