Hello All,
I am new to WayFinder but I have been working with it a bit and it has worked great for me, However I need something a little more dynamic that I'm not sure how to do.
I have a set of 5 pages in my website and each page has another side menu, but each menu for all five resources will be slightly different
I need wayfinder to detect what the current ID is and then display the appropriate menu
I've tried a couple things but nothing i can get to work:
[[!If? &subject=`[[*28]]` &then=`[[Wayfinder? &startId=`27` &excludeDocs=`28,29,30,31,32,33,89`]]`]]
So I need to say if the ID is = to 28 display this menu if the ID is = to 29 display this one and so on.
I've also tried &idIs=`28` and a couple other variations but couldn't really find anything to help me out on this Does anyone else have any ideas how to make this work? Thank you.
All I need it to do is display the menu in a simple list form on the side. Thanks!
Yes Right now I have a container set up like this
PRODUCT SPECIFICATIONS
• Spec1
• Spec2
• Spec3
• Spec4
• Spec5
Products
•product1
•product2
•product3
•product4
•product5
•product6 and so on
I have 5 resources that are product specifications pages. One product specification page might pertain to product 1 and product 2 but not product 3,4 and 5. However another product specification page might pertain to just product 3 and not the others. I am using the same template for all of these resources and have my wayFinder menu in a chunk within this template. I really don't want to have to create 5 different chunks or a separate template for each page.
I am pulling my submenus from the products container
So if someone clicks on the Specifications page for say sealants I need only the sealant products to show up out of the product folder, If someone clicks on the primer specifications I need only the primer products to show up in the submenu.
So I need 5 different wayFinder menus within my chunk and for it to be able to detect what resource it is on to generate the appropriate menu.
I hope this helps.
-
☆ A M B ☆
- 24,524 Posts
That's not a job for Wayfinder. That's a job for a tagging TV or maybe getRelated
http://rtfm.modx.com/extras/revo/getrelated
Hey here is what I did and it worked:
[[*id:is=`28`:then=`[[Wayfinder? &startId=`27` &excludeDocs=`28,29,30,31,32,33,89,90,95,96,98`]]`]]
[[*id:is=`29`:then=`[[Wayfinder? &startId=`27` &excludeDocs=`28,29,30,31,32,33,89,90,95,96,98,94,95,96,98,99,100`]]`]]