Hi there,
If anyone could help with this it would be great. I’ve checked out the variables for wayfinder and I’ve tried a few different things but I’m not too sure what I’m doing wrong.
I am trying to seperate two differerent navigation areas. One will contain the tools for the site and the other will list the profiles featured on the site. They are both just list items.
<div id="sidebar">
<ul>
<li id="dropmenu"><a name="dropmenu"></a><h2>Tools:</h2>
[[Wayfinder? &startId=`0 | 1 | 2`]]
</li>
<li id="profiles"><a name="profiles"></a><h2>Profiles:</h2>
[[Wayfinder? &startId = `0`]]
</li>
</ul>
</div>
<!-- close #sidebar -->
If anyone could tell me who I can correctly select links to different pages to be displayed by wayfinder that would be greatly appreciated.
Thankyou very much.
Sarah
-
MODX Staff
- 12,272 Posts
What is your document structure like?
Ryan Thrash, MODX Co-Founder
Follow me on Twitter at @rthrash or catch my occasional unofficial thoughts at thrash.me
-
☆ A M B ☆
- 24,524 Posts
I always make a container that doesn’t show in the menu or is unpublished to hold either the documents for the tools menu or weblinks to the pages if they appear in the main section also (such as a contact page). Then I use a Wayfinder call with that container as its startId.
This can get a little tricky when making a sitemap, but if you work out the document tree structure it can be done.
hi guys thanks for the tips. is a container a folder? or have i missed the point completely lol. do you need to use TVs to set up hierarchies? thanks in advance.
sarah
sarah,
yes containers/folders are the same thing and no you do not need to use tvs to create the heirarchy. Just create a folder, put the docs in it and then call wayfinder with the startId equal to the id of the folder. wayfinder will then output all docs under that folder.