[[!If? &subject=`[[*id]]` &operator=`is` &operand=`[[*parent]]` &then=`[[$submenu]]` &else=`` ]]
[[*isfolder:is=`1`:then=`[[$submenu]]`:else=``]]
[[[[*isfolder:is=`1`:then=`$submenu`:else=``]]]]
Try this
[[*isfolder:is=`1`:then=`[[$submenu]]`:else=``]]
after try this
[[[[*isfolder:is=`1`:then=`$submenu`:else=``]]]]
The about us won´t be visible, because it´s weblink.Pls, check ON your setting "Container" (on "Settings" tab of weblink resource).
[[*isfolder]]
Quote from: legues at May 26, 2013, 12:17 PMThe about us won´t be visible, because it´s weblink.Pls, check ON your setting "Container" (on "Settings" tab of weblink resource).
And yes,- this is for current resource, as long as weblink links you somewhere so this will not work.[[*isfolder]]
If you use this construction in some chunk to make menu via Wayfinder call you should use [[+isfolder]] (my first example).
Show me your HTML you need to render?
The about us (for axample) is a folder containing all the sub items inside. In this situation... about us is just a weblink and folder. I want get a solution for this because i want to avoid templates...Wellcome
[[getResources? &parents=`[[*id]]` &tpl=`link.row.tpl` &depth=`1`]]
Quote from: legues at May 28, 2013, 04:25 PMThe about us (for axample) is a folder containing all the sub items inside. In this situation... about us is just a weblink and folder. I want get a solution for this because i want to avoid templates...Wellcome
Make as many templates as you need.
As far as I get you need this for sidebar menu?
So why don't you make your sidebar menu with
?[[getResources? &parents=`[[*id]]` &tpl=`link.row.tpl` &depth=`1`]]