Skip to content

Instantly share code, notes, and snippets.

@morozVA
Last active Mar 16, 2018
Embed
What would you like to do?
evo DLBuildMenu
[[DLBuildMenu?
&parents=`5`
&maxDepth=`2`
&activeClass=`active`
&addWhereList=`c.template = 7`
&orderBy=`menuindex ASC`
&TplMainOwner=`@CODE: <ul id="accordion" role="tablist" aria-multiselectable="false" class="panel-group">[+dl.wrap+]</ul>`
&TplSubOwner=`@CODE:<ul class="sub-menu panel-collapse collapse" id="[+iteration+]">[+dl.wrap+]</ul>`
&TplOneItem=`@CODE: <li class="panel [+dl.class+]"><div role="tab"><a class="plus-link" data-toggle="collapse" data-parent="#accordion" href="#[+iteration+]"><i class="fa fa-caret-down" aria-hidden="true"></i><i class="fa fa-caret-up" aria-hidden="true"></i></a><a href="[+url+]" title="[+e.title+]">[+title+]</a></div>[+dl.submenu+]</li>`
&TplDepth2=`@CODE:<li class="[+dl.class+]"><a href="[+url+]" title="[+e.title+]">[+title+]</a></li>`
&TplNoChildrenDepth1=`@CODE:<li class="panel [+dl.class+]"><a href="[+url+]" title="[+e.title+]">[+title+]</a></li>`
]]
http://aharito.ru/modx-evolution/dlbuildmenu-parametry-i-shablony
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment