Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

I am reading article

http://blogs.msdn.com/b/bgeoffro/archive/2009/06/22/master-pages-revisited-references-to-master-pages-in-sharepoint.aspx

but I am not sure what they mean by DynamicMasterPageFile and Static Token, and why thye use hardcoded and token reference.

Please explain with example as where these used.

share|improve this question

1 Answer 1

I believe you are refering to the Dynamic Token vs. Static Token - of course they are both meant to instruct the page from where to load either of the 2 MasterPages (sytem pages vs. user pages).

The static token is basically always refering to where physically the master page is location (but only in the Context of the CURRENT SITE COLLECTION - cannot refer a master page in another site collection), irelevant of the current Site Settings (these are be changed either via SPD or via the Site Settings > Master for Publsishing Sites), where as the dynamic one simply states to load whatever is found in those settings (these are actually stored in each Web property bag) - usually used by the application pages (those in _layouts) to preserve the consistent look & feel with what has been configured by Site Owner/Administrator.

Imagine situations when you need to build an application page that needs to be integrated in multiple site collections (e.g. application pages are usually stored in _layouts, and accessible across site collections! ) - you will most likely NOT use the Static token, but rather the Dynamic, as each Site Collection might have or not in that respective location the master page, but decide to deploy it elsewhere, or a different path.

share|improve this answer
    
I upvoted thanks but now am confused with sytem pages vs. user pages, –  Sophia London Apr 4 '13 at 10:14
    
e.g. System Master Page (used by everything else including forms and view pages) & Site Master Page (Publishing Pages mainly) see also dummies.com/how-to/content/… or msdn.microsoft.com/en-us/library/aa979592(v=office.14).aspx or office.microsoft.com/en-us/sharepoint-server-help/… –  C. Marius - MVP Apr 4 '13 at 10:21

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.