mojoportal中的layout.Master文件標籤理解

<asp:SiteMapDataSource ID="SiteMapData" runat="server" ShowStartingNode="false" EnableViewState="false" />//爲menu提供數據源
<portal:LoginLink id="LoginLink" runat="server" UseLeftSeparator="True" />//登陸鏈接
<portal:LogoutLink id="LogoutLink" runat="server" UseLeftSeparator="True" />//註銷鏈接
<asp:contentplaceholder ID="pageEditContent" runat="server"></asp:contentplaceholder>//如果當前用戶有權限編輯內容,則在頁面上顯示編輯圖標(添加頁面,編輯頁面屬性,編輯頁面內容)
<portal:SiteMenu id="SiteMenu1" runat="server" ></portal:SiteMenu>//站點導航
<asp:Panel id="divLeft" runat="server" SkinID="pnlPlain">//左列
<asp:contentplaceholder ID="leftContent" runat="server"></asp:contentplaceholder>
</asp:Panel>
<asp:Panel id="divCenter" runat="server" SkinID="pnlPlain">
<asp:ContentPlaceHolder ID="mainContent" runat="server"></asp:ContentPlaceHolder>//中間列
</asp:Panel>
<asp:Panel id="divRight" runat="server" visible="True" cssclass="rightside">
<asp:contentplaceholder ID="rightContent" runat="server"></asp:contentplaceholder>//右列
</asp:Panel>
<portal:PageTitle id="PageTitle1" runat="server" />//必需用在title裏。在默認情況下顯示站點名稱-頁面名稱。你可以在頁面設置裏更改每個頁面的tilte
<portal:StyleSheet id="StyleSheet" runat="server" />//必需用在head裏,從當前皮膚得到樣式表路徑
<portal:MetaContent id="MetaContent" runat="server" />//必需用在head裏,可以在管理員站點設置裏設定。單獨的頁面也可以在頁面設置裏設定。
<portal:Favicon id="Favicon1" runat="server" />//從皮膚文件夾裏獲取icon的路徑
<portal:SiteLogo id="SiteLogo" runat="server"></portal:SiteLogo>//站點圖片
<portal:SiteMapLink id="SiteMapLink1" runat="server">//鏈接到網站地圖
<portal:MyPageLink id="MyPageLink1" runat="server">//鏈接到MyPage圖
<portal:SiteTitle id="SiteTitle" runat="server"></portal:SiteTitle>//站點標題
<portal:SkipLink id="SkipLink1" runat="server" />錨點
<portal:WelcomeMessage id="WelcomeMessage" runat="server" UseRightSeparator="False" />//顯示登陸信息
<portal:HomeLink id="HomeLink" runat="server" />//首頁鏈接
<portal:SearchInput id="SearchInput1" LinkOnly="True" UseLeftSeparator="True" runat="server" />//搜索框和搜索按鈕
<portal:UserProfileLink id="UserProfileLink" runat="server" />//鏈接到用戶資料
<portal:MemberListLink id="MemberListLink" runat="server" UseLeftSeparator="True" />//如果web.config配置了允許任何人查看用戶列表,在這個鏈接會一直顯示,否則只有登陸了才能顯示。
<portal:RegisterLink id="RegisterLink" runat="server" UseLeftSeparator="True" />//註冊鏈接<portal:Breadcrumbs id="Breadcrumbs" runat="server"></portal:Breadcrumbs>//顯示當前頁面在導航欄目中的位置
<portal:ChildPageMenu id="ChildPageMenu" runat="server" CssClass="Head"></portal:ChildPageMenu>//如果在頁面設置中啓用顯示子頁面目錄,當前頁面會顯示子目錄。當該頁面僅僅是其他頁面的父頁面且沒有內容時,這個元素就非常有用。
<portal:SkinPreview id="SkinPreview1" runat="server"></portal:SkinPreview >//顯示打印預覽頁面
<portal:PageMenu id="PageMenu1" runat="server">//用來顯示當前目錄的子目錄,如果使用PageMenu,SiteMapDataSource 是必需的。 


發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章