Trying to accomplish a couple of things in a Wayfinder menu in Revo 2.3.3:
1) In the below hierarchy, for &categoryFoldersTpl, I'd like to use templateA for ultimate parents and templateB for siblings. I found many examples in which Wayfinder is called as a result of a condition, but none where tpls are switched within a Wayfinder parameter, and cannot get the latter to work.
Ultimate Parent Category Folder > (TplA)
--Sibling Category Folder > (TplB)
---Resource 1
---Resource 2
--Sibling Category Folder > (TplB)
---Resource 3
---Resource 4
I tried both a conditional filter and If within the &categoryFoldersTpl parameter; in both cases Wayfinder defaults to &parentRowTpl.
I tried the conditional filter or If statement within the &categoryFoldersTpl
chunk, in turn specifying chunks for each condition; Wayfinder uses the same ultimate parent (i.e. id=3), and ultimate parent template, for all instances of a category folder, and doesn't output resources in the submenu.
For context, here's how I tried the Wayfinder call, using either id or parent as the subject of the condition:
[[Wayfinder?
...parameters...
&categoryFoldersTpl=`[[[[*parent:is=`3`:or:is=`17:then=`$templateB`:else=`$templateA`]]]]`
-OR-
&categoryFoldersTpl=`[[If? &subject=`[[*parent]]` &operator=`EQ` &operand=`3,17` &then=`$templateB` &else=`$templateA`]]`
-OR-
&categoryFoldersTpl=`catHeading` // With same output filter / If call in catHeading chunk
]]
2) Related to the scenario above, I want to vary the submenu tpl by ultimate parent. Basically, I want to show a monster menu for one site section and a list menu for another. I haven't tried anything with this yet, but suspect its solution will be similar if not identical to the above.
Any ideas?