문제

I have a kentico CMSListMenu which contains 4 levels at it deepest, i want to display the menu as a nested list down the left hand side of my content, this works fine for 3 levels but i cant get the 4th level to display.

I have this working on another site using the exact same code so i must be missing something, these are the menu expressions i have tried using:

<cc1:CMSListMenu ID="CMSTreeMenu1" runat="server" Path="/{0}/{1}/{2}/%" DisplayHighlightedItemAsLink="True" DisplayOnlySelectedPath="true" Indentation="0"  MaxRelativeLevel="5" /></cc1:cmslistmenu>

<cc1:CMSListMenu ID="CMSTreeMenu1" runat="server" Path="/Products---Solutions/%" DisplayHighlightedItemAsLink="True" DisplayOnlySelectedPath="true" Indentation="0"  MaxRelativeLevel="5" /></cc1:cmslistmenu>

do i need to set this somewhere else? perhaps somewhere inside of kentico to output so many levels down?

Any help would be greatly appreciated, this has been causing me problems for days

도움이 되었습니까?

해결책

I believe that the CMS List Menu only displays cms.Page (Menu Item) documents by default. If you're trying to display other types of documents, make sure you set that in the menu properties.

다른 팁

Try setting DisplayOnlySelectedPath="false" to see if it displays everything as you expect it to under the menu.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top