<![CDATA[ Wayfinder and Bootstrap 4 - My Forums]]> https://forums.modx.com/thread/?thread=104396 <![CDATA[Wayfinder and Bootstrap 4]]> https://forums.modx.com/thread/104396/wayfinder-and-bootstrap-4#dis-post-561530
Bootstrap, however, hasn't recognised nested <ul>s since V3, (according to one of the project members), and as a consequence my Wayfinder-generated bootstrap menus fail if I upgrade Bootstrap. Bootstrap manages submenus by adding a different class to the <li> that heads a sub-menu.

I can't work out any way for Wayfinder to be used to generate a bootstrap-compatible <ul> with a special class for the sub-menu <li>s.

Has anyone managed their way around this one?

I'm on Revo 2.6.5, on MODX Cloud, so all the latest stuff.]]>
nicboyde Sep 13, 2018, 08:12 PM https://forums.modx.com/thread/104396/wayfinder-and-bootstrap-4#dis-post-561530
<![CDATA[Re: Wayfinder and Bootstrap 4]]> https://forums.modx.com/thread/104396/wayfinder-and-bootstrap-4#dis-post-561559 Quote from: nicboyde at Sep 15, 2018, 07:51 PM
Quote from: argonaut2k at Sep 14, 2018, 09:46 AM
Just use templating https://docs.modx.com/extras/revo/wayfinder#Wayfinder-TemplateParameters

I do use templating, but I am a bit puzzled as to how to use templating to stop Wayfinder generating the nested <ul> and associated <li> tags within the outermost <ul>. You wouldn't have an example of something of this nature would you? Hasn't got to be the same thing, but the example in the docs doesn't explain away my problem.

I'm grateful for any further clues.</ul></li></ul>

innerTpl is template for any subfolders and innerRowTpl template for the row items in a subfolder.

Default innerTpl

<ul[[+wf.classes]]>[[+wf.wrapper]]</ul>

Default innerRowTpl

<li[[+wf.id]][[+wf.classes]]><a href="[[+wf.link]]" title="[[+wf.title]]" [[+wf.attributes]]>[[+wf.linktext]]</a>[[+wf.wrapper]]</li>




]]>
argonaut2k Sep 16, 2018, 10:20 AM https://forums.modx.com/thread/104396/wayfinder-and-bootstrap-4#dis-post-561559
<![CDATA[Re: Wayfinder and Bootstrap 4]]> https://forums.modx.com/thread/104396/wayfinder-and-bootstrap-4#dis-post-561556 Quote from: argonaut2k at Sep 14, 2018, 09:46 AM
Just use templating https://docs.modx.com/extras/revo/wayfinder#Wayfinder-TemplateParameters

I do use templating, but I am a bit puzzled as to how to use templating to stop Wayfinder generating the nested <ul> and associated <li> tags within the outermost <ul>. You wouldn't have an example of something of this nature would you? Hasn't got to be the same thing, but the example in the docs doesn't explain away my problem.

I'm grateful for any further clues.]]>
nicboyde Sep 15, 2018, 07:51 PM https://forums.modx.com/thread/104396/wayfinder-and-bootstrap-4#dis-post-561556
<![CDATA[Re: Wayfinder and Bootstrap 4]]> https://forums.modx.com/thread/104396/wayfinder-and-bootstrap-4#dis-post-561534 https://docs.modx.com/extras/revo/wayfinder#Wayfinder-TemplateParameters]]> argonaut2k Sep 14, 2018, 09:46 AM https://forums.modx.com/thread/104396/wayfinder-and-bootstrap-4#dis-post-561534