Before using the base master page,please fimiliare yourself with various sections of the base master page code
· Required Components
· Optional Components
· Hidden Components
Required Components:
If no availability of required components sharepoint page cannot render properly
All the components are placed in a their corresponding content place holder
asp:ContentPlaceHolder id=”PlaceHolderMain” runat=”server” />
This content placeholder corresponds to the content area in page layouts.It is required for the MOSS site to render properly.
All the required which are not usefull should be placed .If you delete those place holders sharepoint page cannot render properly
Following are the some of the required components
asp:ContentPlaceHolder id=”PlaceHolderMain” runat=”server” />
asp:ContentPlaceHolder id="PlaceHolderGlobalNavigation" runat="server">
asp:ContentPlaceHolder id="PlaceHolderTopNavBar" runat="server">
Optional Components:
Optional components are nothing but components which are optional
Some of the Optional Components:
asp:ContentPlaceHolder id="PlaceHolderLeftActions" runat="server"/>
asp:ContentPlaceHolder id="PlaceHolderNavSpacer" runat="server">
asp:ContentPlaceHolder id="PlaceHolderLeftNavBarBorder" runat="server">
Hidden Components:
We can hide the some of the components which are required for render sharepoint correctly
Place all the components which are not required for sharepoint view in the hidden asp panel
asp:Panel visible="false" runat="server">
All the master pages and page layouts are are in _catalogs -> masterpage
- Create master page from default master page
- Right click on default master page then copy the master page
- Right click on the same place select paste option
- creates the master page with the name default_copy(1).master
- Double click on default_copy(1).master then it is ask for do you want to check out
- Press yes
- Then it opens master page
- Double click on default_copy(1).master then it is ask for do you want to check out
- Press yes
- Then it opens master page
- Click on split option in the window it is splitted to code and design
- Click on the designs which are not required automatically the code corresponding to the design is highlited
- Then cut that code and placed in a hidden content place holder
Comments