E
E
Ekaterina Arsentieva2019-03-31 15:06:17
MODX
Ekaterina Arsentieva, 2019-03-31 15:06:17

How to make a menu in Modx using pdo tools?

How to make such a menu using pdo tools? There was a problem with the li classes. Tell me please

<div class="menu" id="nsv1">
    <ul class="navbar-nav">

        <li class="nav-item active"><a class="nav-link" href="#hero">Home</a></li>
        <li class="nav-item"><a class="nav-link" href="#features">Features</a></li>
        <li class="nav-item"><a class="nav-link" href="#work">How It Work?</a></li>
        <li class="nav-item"><a class="nav-link" href="#process">Process</a></li>
        <li class="nav-item"><a class="nav-link" href="#download">Download</a></li>
        <li class="nav-item"><a class="nav-link" href="#pricing">Pricing</a></li>
        <li class="nav-item"><a class="nav-link" href="#blog">Blog</a></li>
    </ul>
</div>

Answer the question

In order to leave comments, you need to log in

2 answer(s)
R
Ruslan, 2019-03-31
@waitfornight6

Hello, using pdoMenu - https://docs.modx.pro/komponentyi/pdotools/snippet...
There is an example of an item template - &tpl, in your case it will be like this:

&tpl=`@INLINE <li class="nav-item "><a class="nav-link" href="#" ></a></li>`

S
Sanes, 2019-03-31
@Sanes

2-level Navbar from Uikit 2
https://bitbucket.org/Drobkov/modx-template/src/74...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question