Friday 11 July 2014

Master Page in Sharepoint

Master Page in Sharepoint:
-----------------------------
default.master physical lpath in Shrepoint Server?
Do not edit the default.master file directly in the Program Files\Common Files\Microsoft Shared\Web Server
Extensions\12\TEMPLATE\GLOBAL\ folder.
Note: If a master page is customized using Office SharePoint Designer, Windows SharePoint Services stores a modified version
of the master page in the content database.
Customization of the master page for a site changes only the content pages for that site. It does not affect application
pages (pages in _layouts), because _layouts pages are pages of the Windows SharePoint Services application and are shared
across sites.
Application Pages are available in _layouts folder.
Windows SharePoint Services provides several tokens to reference the master page—two dynamic tokens
("~masterurl/default.master" and "~masterurl/custom.master") and two static tokens ("~site/default.master" and
"~sitecollection/default.master").
Note:These tokens apply to Windows SharePoint Services master pages only; they do not apply to ASP.NET 2.0 master pages.
Note:
The MasterUrl and CustomMasterUrl properties are both set to "/_catalogs/masterpage/default.master" by default. If you
subsequently need to delete default.master, you must set both of those properties to a different value, not just one of them,
or an error is raised that suggests the default.master file is still being used as the master page for the site.
You cannot add Web Parts in zones to a master page. You can add static Web Parts (parts outside of a zone) to a master page,
but you cannot add dynamic Web Parts to master pages.
You can add zones to master pages and later add Web Parts to the zone in the browser, but the Web Parts are associated with
the content page.