Master Page Tokens
When you attach a master page to an ASPX page and select the existing site, or default, master page, then the page references the site’s master page using a dynamic token:
<%@ Page Language="C#" masterpagefile="~masterurl/default.master" title="Untitled 12"
You can see the master page reference in the page’s code view, where it’s located at the very top of the page. When referencing master pages in SharePoint content pages, dynamic tokens automatically inherit the site’s master page. In other words, if you change the site’s master page via the Web interface or the Master Page Gallery in SharePoint Designer the updated master page automatically applies to content pages including dynamic tokens.
However, if at the time of attaching ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access