ModX:使用 Wayfinder 选择和输出特定菜单项
我一直在尝试输出特定的菜单项,还想更改一些菜单项的名称,但没有令人满意的结果。问题是我在整个网站上有三种不同的菜单设置 - 标题分为两个部分,页脚分为几列。这是我到目前为止所尝试过的 -
<代码> [[寻路者? &startId=0
&level=1
&limit=5
&excludeDocs=49,61,55
代码>]]
虽然它可以排除所有其他链接,但这并不是最佳解决方案,因为总共有 11 个链接,而且我希望能够 1. 重新排列顺序,2. 更改其中两个链接的名称。 使用 Wayfinder 是否可以实现这一点,还是我必须创建一个片段?
提前致谢。
I've been trying to output specific menu items, also wanting to change the names of some, without satisfying results. The problem is that I have three different menu setups throughout the site - the header split into two sections and the footer divided into a couple of columns. This is what I've tried so far -
[[Wayfinder? &startId=0
&level=1
&limit=5
&excludeDocs=49,61,55
]]
While it works excluding all the other links isn't the most optimal solution as there are 11 in total plus I want to be able to 1. rearrange the order and 2. change the names of two of them.
Is this possible at all using the Wayfinder or do I have to create a snippet?
Thanks in advance.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
名称(菜单标题)和订单(菜单索引) - 您可以通过管理器界面(或用于更快订单排序的文档管理器模块)进行控制。
这是默认的,您也可以自定义它(textOfLinks、sortBy、sortOrder)
关于 exceptDocs,也许使用相反的 - includeDocs 参数更适合您。
请参阅:www.muddydogpaws.com/development/wayfinder/parameters.html
Names (menu title) and Order (Menu Index) - you control via the manager interface (or Doc Manager module for quicker order sorting).
This is the default, you can also customize this (textOfLinks, sortBy, sortOrder)
About excludeDocs, maybe using the opposite - includeDocs param is better for you.
see this: www.muddydogpaws.com/development/wayfinder/parameters.html