ASP and LIQUID navigation for sitewrench, menu, links, nav.
<!-- 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")%>
<!-- or -->
<%= GetStoreMenuHTML() %>
<!-- 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)%>
<!-- displays navigation for siblings and their sub pages for the current page in a VB master page -->
<%= Me.GenerateChildPageCode(New PublicPage().CurrentPage.SitePageId, includeSubChildren:=True) %>
<!-- Displays the mainnav -->
{% MainPagesMenu %}
<!--children of the current page-->
{% ChildPagesMenu %}
<!--siblings of the current page-->
{% SiblingPagesMenu %}
<!--second level of the whole page tree-->
{% SecondLevelPagesMenu %}
<!-- lists out the parental-hierarchy of the current page-->
{% BreadcrumbPagesMenu %}