Kentico CMSListMenu 未显示足够的树级别?
我有一个 kentico CMSListMenu,其中最深包含 4 个级别,我想将菜单显示为内容左侧的嵌套列表,这对于 3 个级别来说效果很好,但我无法显示第 4 个级别。
我在另一个网站上使用完全相同的代码工作,所以我一定错过了一些东西,这些是我尝试使用的菜单表达式:
<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>
我需要在其他地方设置它吗?也许是在 kentico 内部的某个地方可以输出如此多的级别?
任何帮助将不胜感激,这几天来一直给我带来问题
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
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我相信CMS列表菜单默认只显示cms.Page(菜单项)文档。如果您尝试显示其他类型的文档,请确保在菜单属性中进行设置。
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.
尝试设置
DisplayOnlySelectedPath="false"
以查看它是否按您期望的方式显示菜单下的所有内容。Try setting
DisplayOnlySelectedPath="false"
to see if it displays everything as you expect it to under the menu.