开发者

ModX: Selecting and outputting specific menu items using Wayfinder

开发者 https://www.devze.com 2023-01-04 06:40 出处:网络
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

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 colum开发者_如何转开发ns. 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.


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

0

精彩评论

暂无评论...
验证码 换一张
取 消