How to tell MODX wayFinder to detect the resource ID it is currently on -


i new wayfinder have been working bit , has worked great me, need little more dynamic i'm not sure how do.

i have set of 5 pages in website , each page has side menu, each menu 5 resources different

i need wayfinder detect current id , display appropriate menu

i've tried couple things nothign can work:

[[!if? &subject=[[*28]] &then=[[wayfinder? &startid=27&excludedocs=28,29,30,31,32,33,89]]]]

so need if id = 28 display menu if id = 29 display 1 , on.

i've tried &idis=28 , couple other variations couldn't find me out on else have ideas how make work? thank you.

you can use output filters conditional calls. documentation them here

you code looks this:

[[*id:is=`28`:then=`[[wayfinder? &startid=27&excludedocs=28,29,30,31,32,33,89]]`:else=``]] 

Comments

Popular posts from this blog

java - Run a .jar on Heroku -

java - Jtable duplicate Rows -

validation - How to pass paramaters like unix into windows batch file -