Prepare Study Notes on the MOSS master page (2)

Source: Internet
Author: User
4. <asp: ContentPlaceHolder ID = "PlaceHolderSearchArea" runat = "server"/>
Place the placeholder in the search box. On the global master page, the default format of the content added is
<Asp: ContentPlaceHolder id = "PlaceHolderSearchArea" runat = "server">
<SharePoint: DelegateControl runat = "server" ControlId = "SmallSearchInputBox"/>
</Asp: ContentPlaceHolder>
The style can also be adjusted. For example, if you only need the search box, you can directly write the code:
<Asp: ContentPlaceHolder id = "PlaceHolderSearchArea" runat = "server">
<SPSWC: SearchBoxEx id = "SearchBox" RegisterStyles = "false" TextBeforeDropDown = "" TextBeforeTextBox = "<% $ Resources: cms, masterpages_searchbox_label %> "TextBoxWidth =" 100 "GoImageUrl =" <% $ SPUrl :~ Sitecollection/xx.jpg %>"
GoImageUrlRTL = "<% $ SPUrl :~ /Xx.jpg %> "UseSiteDefaults =" true "DropDownMode =" HideScopeDD "SuppressWebPartChrome =" true "runat =" server "WebPart =" true "_ WebPartId =" {parts }"/>
</Asp: ContentPlaceHolder> 5. <asp: ContentPlaceHolder ID = "PlaceHolderHorizontalNav" runat = "server"/>
Place the placeholder in the horizontal navigation bar. The default format of the content added to the global master page is
<Asp: ContentPlaceHolder id = "PlaceHolderHorizontalNav" runat = "server">
<SharePoint: AspMenu
ID = "TopNavigationMenu"
Runat = "server"
Performanceid = "topSiteMap"
EnableViewState = "false"
AccessKey = "<% $ Resources: wss, navigation_accesskey %>"
Orientation = "Horizontal"
StaticDisplayLevels = "2"
MaximumDynamicDisplayLevels = "1"
DynamicHorizontalOffset = "0"
Staticpoutimageurl = "/_ layouts/images/menudark.gif"
Staticpoutimagetextformatstring = ""
DynamicHoverStyle-BackColor = "# CBE3F0"
SkipLinkText = ""
StaticSubMenuIndent = "0"
CssClass = "ms-topNavContainer">
<StaticMenuStyle/>
<StaticMenuItemStyle CssClass = "ms-topnav" ItemSpacing = "0px"/>
<StaticSelectedStyle CssClass = "ms-topnavselected"/>
<StaticHoverStyle CssClass = "ms-topNavHover"/>
<DynamicMenuStyle BackColor = "# F2F3F4" BorderColor = "# A7B4CE" BorderWidth = "1px"/>
<DynamicMenuItemStyle CssClass = "ms-topNavFlyOuts"/>
<DynamicHoverStyle CssClass = "ms-topNavFlyOutsHover"/>
<DynamicSelectedStyle CssClass = "ms-topNavFlyOutsSelected"/>
</SharePoint: AspMenu>
<SharePoint: DelegateControl runat = "server" ControlId = "TopNavigationDataSource">
<Template_Controls>
<Asp: SiteMapDataSource
ShowStartingNode = "False"
SiteMapProvider = "SPNavigationProvider"
Id = "topSiteMap"
Runat = "server"
StartingNodeUrl = "sid: 1002"/>
</Template_Controls>
</SharePoint: DelegateControl>
</Asp: ContentPlaceHolder>
To apply other styles, remove the cssclass styles and modify the style table applied to the master page. In addition, pay attention to the performanceid. The data source in the navigation bar can be set, for example, retrieving data from xml; StaticDisplayLevels and MaximumDynamicDisplayLevels are also important and can be used to modify the style and display mode of the navigation bar. 6. <asp: ContentPlaceHolder ID = "PlaceHolderTopNavBar" runat = "server"/>
Place a placeholder for the content of a row in the horizontal navigation bar, one layer outside PlaceHolderHorizontalNav. 7. <asp: ContentPlaceHolder ID = "WSSDesignConsole" runat = "server"/>
Page editing control, used when the Page enters the editing Page mode (when we click Site Actions, Edit Page) 8, <asp: contentPlaceHolder ID = "SPNavigation" runat = "server"/>
Windows SharePoint Services is empty by default. It is a placeholder for the page editing control appended. 9. <asp: ContentPlaceHolder ID = "PlaceHolderPageImage" runat = "server"/>
The placeholder of the image on the left. 10. <asp: ContentPlaceHolder ID = "PlaceHolderTitleLeftBorder" runat = "server"/>
The placeholder of the left border in the Title area. 11. <asp: ContentPlaceHolder ID = "PlaceHolderTitleBreadcrumb" runat = "server"/>
The placeholder of the TitleBreadcrumb page navigation area, 12. <asp: ContentPlaceHolder ID = "PlaceHolderPageTitleInTitleArea" runat = "server"/>
Placeholder for the title under the Breadcrumb area, 13. <asp: ContentPlaceHolder ID = "PlaceHolderMiniConsole" runat = "server"/>
A place where Page-level commands are placed, such as The placeholder for Edit Page, History, and Incoming Links on the WIKI site,
14. <asp: ContentPlaceHolder ID = "PlaceHolderTitleRightMargin" runat = "server"/>
The placeholder that is left blank on the right of the Title area,
15. <asp: ContentPlaceHolder ID = "PlaceHolderTitleAreaSeparator" runat = "server"/>
Placeholders in the TitleAreaSeparator area,
16. <asp: ContentPlaceHolder ID = "PlaceHolderLeftNavBarDataSource" runat = "server"/>
Placeholder character of the data source in the left navigation area,
17. <asp: ContentPlaceHolder ID = "PlaceHolderCalendarNavigator" runat = "server"/>
A date selection box placeholder is displayed for a calendar in the page,
18. <asp: ContentPlaceHolder ID = "PlaceHolderLeftNavBarTop" runat = "server"/>
Placeholders in the navigation area above the left navigation area,
19. <asp: ContentPlaceHolder ID = "PlaceHolderLeftNavBar" runat = "server"/>
Placeholder in the left navigation area,
20. <asp: ContentPlaceHolder ID = "PlaceHolderLeftActions" runat = "server"/>
The placeholder of the action area in the navigation area on the left,
21. <asp: ContentPlaceHolder ID = "PlaceHolderNavSpacer" runat = "server"/>
Placeholder for the width of the left navigation area,
22. <asp: ContentPlaceHolder ID = "PlaceHolderLeftNavBarBorder" runat = "server"/>
Placeholder for the border element in the left navigation area,
23. <asp: ContentPlaceHolder ID = "PlaceHolderBodyLeftBorder" runat = "server"/>
The placeholder of the border element of the page body,
24. <asp: ContentPlaceHolder id = "PlaceHolderPageDescription" runat = "server"/>
Placeholder of the page description area,
25. <asp: ContentPlaceHolder id = "PlaceHolderMain" runat = "server"/>
Placeholder of the page body,
26. <asp: ContentPlaceHolder ID = "PlaceHolderBodyRightMargin" runat = "server"/>
The placeholder that is blank on the right of the page body,
27. <asp: ContentPlaceHolder ID = "PlaceHolderFormDigest" runat = "server"/>
This is a placeholder for the necessary "form digest" security component on the page,
28. <asp: ContentPlaceHolder ID = "PlaceHolderUtilityContent" runat = "server"/>
A placeholder for the special content required at the bottom of the page,
29. <asp: ContentPlaceHolder ID = "PlaceHolderBodyAreaClass" runat = "server"/>
The placeholder of the style appended to the body at the top of the page,
30. <asp: ContentPlaceHolder ID = "PlaceHolderTitleAreaClass" runat = "server"/>
The identifier of the style appended to TitleArea,
31. <asp: ContentPlaceHolder id = "PlaceHolderAdditionalPageHead" runat = "server"/> Add all content that can be placed in the   Obtain the display effect, html layout, and css style sheet from the artist.Needless to say, I would like to say a few words here. html pages also have layout requirements. We should say yes to the artist in advance. For example, we should separate the headers and tails, do not use a table lattice to write loops. Create a new master page from SPD and copy the html codeStep (1): Open Sharepoint Designer.
Step (2): click New In the File menu, select Sharepiont Content, and select the Page tag.
Step (3): double-click the master page to create a master page.
Step (4): select to view the master page in code mode.
Step (5): copy and paste the html code to the dashboard page (Be sure not to overwrite the original required element code)
Step (6): Remove duplicate elements, for example, Replace the controls simulated by the artist with placeholders on the master page; In addition to necessary elements, additional controls need to be added to the corresponding positions;Let alone the two .. Reprinted from: http://www.cnblogs.com/heli/archive/2008/08/15/1268655.html

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.