Skip to content

Commit

Permalink
Add wrapper placeholder to navItem chunk
Browse files Browse the repository at this point in the history
This should be there by default, to ensure the menu can have multiple levels. If undesirable, set level to 1 in snippet call or use navItemInner chunk, which doesn't have the wrapper.
  • Loading branch information
hugopeek committed Jun 30, 2020
1 parent 4969b24 commit bc8a015
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
<a class="item [[+classnames]]" href="[[+link]]" title="[[+pagetitle]]" [[+attributes]]>
[[+menutitle]]
[[+wrapper]]
</a>
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<div class="ui horizontal list">
[[pdoMenu?
&parents=`[[++common_pages_id:empty=`[[++romanesco.common_pages_id:empty=`0`]]`]]`
&level=`0`
&level=`1`
&tplOuter=`navWrapper`
&tpl=`navItem`
&sortby=`menuindex`
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
&parents=`[[UltimateParent]]`
&level=`2`
&tplOuter=`navWrapper`
&tpl=`navItemWrapper`
&tpl=`navItem`
&tplParentRowActive=`navItemInnerWrapper`
&tplInnerRow=`navItemInner`
&hideSubMenus=`1`
Expand Down

0 comments on commit bc8a015

Please sign in to comment.