Q
Q
qvvi2016-12-24 17:49:58
MODX
qvvi, 2016-12-24 17:49:58

MODx Evo, Wayfinder, second level menu?

Friends, we really need your help!
I work with MODx for the second time, the first time there was the same snag, but I overcame it by finding a similar problem and its solution, now it doesn’t work. After reading numerous guides - my head is full of porridge, I really need help from experienced MODx'a.
There is a menu with the following code:

<ul class="nav navbar-nav">			  
            <li class="active"><a href="index.html">HOME</a></li>
            <li><a href="about.html">ABOUT</a></li>
            <li><a href="contact.html">CONTACT</a></li>
            <li class="dropdown">
              <a href="#" class="dropdown-toggle" data-toggle="dropdown">PAGES <b class="caret"></b></a>
              <ul class="dropdown-menu">
                <li><a href="blog.html">BLOG</a></li>
                <li><a href="single-post.html">SINGLE POST</a></li>
                <li><a href="portfolio.html">PORTFOLIO</a></li>
                <li><a href="single-project.html">SINGLE PROJECT</a></li>
              </ul>
            </li>
          </ul>

The original looks like this:
bd9226cdb024.jpg
How to generate a request for Wayfinder to get the same result as on the screen? I will be very grateful for the answer!

Answer the question

In order to leave comments, you need to log in

1 answer(s)
Q
qvvi, 2016-12-25
@qvvi

I solved the question, maybe someone needs
Chunk menu:

<ul class="nav navbar-nav">
    
</ul>

Chunk menu-item:
<li [+wf.classes+]>
    <a href="[+wf.link+]" [+phx:if=`[+wf.wrapper+]`:ne=``:then=`class="dropdown-toogle" data-toggle="dropdown"`+]>[+wf.linktext+]</a>
    [+phx:if=`[+wf.wrapper+]`:ne=``:then=` <ul class="dropdown-menu">[+wf.wrapper+]</ul>`+]
</li>

outer-item chunk:
[+wf.wrapper+]

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question