html Sitewrench导航

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了html Sitewrench导航相关的知识,希望对你有一定的参考价值。

<!-- Displays the mainnav -->
<%=Me.GetMenuHTML("main")%>

<!-- Displays the subnav -->
<%=Me.GetMenuHTML("subnav")%>

<!-- Displays a sibling nav -->
<%=Me.GetMenuHTML("sibling")%>

<!-- Displays children of page in a nav -->
<%=Me.GetMenuHTML("children")%>

<!-- Displays a sitemap -->
<%=Me.GetMenuHTML("sitemap")%>

<!-- Displays a breadcrumb nav - use with caution as this sometimes doesn't work -->
<%=Me.GetMenuHTML("breadcrumb")%>

<!-- Displays all children in nav of a particular page.  Insert the page ID where 'childpagecode' is seen -->
<%=Me.GetMenuHTML("childpagecode")%>

<!-- Displays direct children of a particular page using the page ID - Insert your page id where 91519 is displayed -->
<%=Me.GenerateChildPageCode(91519)%>

<!-- Display all children of page ID -->
<%= Me.GenerateChildPageCode(9999, includeSubChildren:=True) %>

<!-- Generate ChildPage Set based on current page -->
<% If Not IsNothing(New PublicPage().CurrentPage) Then %>
    <%= Me.GenerateChildPageCode(New PublicPage().CurrentPage.SitePageId, includeSubChildren:=True) %>
<% End If %>

<!-- Generate ChildPages Set based on current page - if n/a generate siblings -->
<% If Not IsNothing(New PublicPage().CurrentPage) Then %>
    <% Dim htmlMenu As String = Me.GenerateChildPageCode(New PublicPage().CurrentPage.SitePageId, includeSubChildren:=True) %>
    <% If String.IsNullOrWhiteSpace(htmlMenu) Then %>
    	<% htmlMenu = Me.GenerateChildPageCode(New PublicPage().CurrentPage.ParentPageId, includeSubChildren:=True) %>
    <% End If %>
    <%= htmlMenu %>
<% End If %>

<!-- Displays a store related nav -->
<%=Me.GetMenuHTML("store")%>

<!-- Displays all children of a particular page and includes that page as well. Insert your page id where 91519 is displayed -->
<%=Me.GenerateChildPageCodeIncludeParent(91519)%>

<!-- Displays a level 2 nav -->
<%=Me.GetMenuHTML("level2nav")%>

<!-- Generate Links for Main Top Level Pages  - This will generate links for all of the main pages of the website. ALl you have to do is put Zero as shown in the snippet. -->
<%=Me.GenerateChildPageCode(0)%>

以上是关于html Sitewrench导航的主要内容,如果未能解决你的问题,请参考以下文章

html Sitewrench网站地图

html SiteWrench网站内容标签

html SiteWrench Popovers

html SiteWrench Blog RSS

html [桌面+移动视频英雄W /矩阵]允许使用Sitewrench的矩阵页面部分允许视频播放移动和桌面

html [桌面+移动视频英雄W /矩阵]允许使用Sitewrench的矩阵页面部分允许视频播放移动和桌面