Help me set up the correct display of pdoMenu

Good afternoon. I use the code. They get an incorrect output. I can’t figure out how to set it up.

 [[!pdoMenu?
                     &parents = `3`
                     &level = `3`
                     &limit = `15`
                     &tplOuter = `@INLINE 
                     <nav class="category-menu[[*template:is=`1`:then=` category-menu-style_2`]]">
                        <ul class="categories-list">
                           [[+wrapper]]
                           <li><a href="[[~3]]" class="view-all">Смотреть всё</a></li>
                        </ul>
                     </nav>
                     `
                     &tpl = `@INLINE 
                     <li><a href="[[+link]]">[[+menutitle]]</a></li>
                     `
                     &tplParentRow = `@INLINE 
                     <li class="menu-item-has-children"><a href="[[+link]]">[[+menutitle]]</a>[[+wrapper]]</li>
                     `
                     &tplParentRowActive = `@INLINE 
                     <li class="menu-item-has-children active"><a href="[[+link]]">[[+menutitle]]</a>[[+wrapper]]</li>
                     `
                     &tplHere = `@INLINE 
                     <li class="active"><a href="[[+link]]">[[+menutitle]]</a>[[+wrapper]]</li>
                     `
                     &tplInner = `@INLINE 
                     <ul class="category-mega-menu dropdown [[+tv.megaMenuColumns]]">[[+wrapper]]</ul>
                     `
                     &tplInnerRow = `@INLINE 
                     <li class="menu-item-has-children"><a href="[[+link]]">[[+menutitle]]</a>[[+wrapper]]</li>
                     `
                     &tplCategory = `@INLINE 
                     <ul class="dropdown">[[+wrapper]]</ul>
                     `
                     &where = `{"published":"1","deleted":"0"}`
                     &showHidden = `0`
                     &useWeblinkUrl = `1`
                     &includeTVs = `1`
                     &tvPrefix = `tv.`
                     &prepareTVs = `1`
                     &tvList = `megaMenuColumns`
                     ]]

But it’s necessary like this

source template code

<ul class="categories-list">
                                        <li class="menu-item-has-children"><a href="shop.html">Fruits &amp; Vegetables</a>
                                            <!-- Mega Category Menu Start -->
                                            <ul class="category-mega-menu dropdown">
                                                <li class="menu-item-has-children">
                                                    <a href="shop.html">Smartphone</a>
                                                    <ul class="dropdown">
                                                        <li><a href="shop.html">Samsome</a></li>
                                                        <li><a href="shop.html">GL Stylus</a></li>
                                                        <li><a href="shop.html">Uawei</a></li>
                                                        <li><a href="shop.html">Cherry Berry</a></li>
                                                    </ul>
                                                </li>
                                                <li class="menu-item-has-children">
                                                    <a href="shop.html">headphone</a>
                                                    <ul class="dropdown">
                                                        <li><a href="shop.html">Desktop Headphone</a></li>
                                                        <li><a href="shop.html">Mobile Headphone</a></li>
                                                        <li><a href="shop.html">Wireless Headphone</a></li>
                                                        <li><a href="shop.html">LED Headphone</a></li>
                                                    </ul>
                                                </li>
                                                <li class="menu-item-has-children">
                                                    <a href="shop.html">accessories</a>
                                                    <ul class="dropdown">
                                                        <li><a href="shop.html">Power Bank</a></li>
                                                        <li><a href="shop.html">Data Cable</a></li>
                                                        <li><a href="shop.html">Power Cable</a></li>
                                                        <li><a href="shop.html">Battery</a></li>
                                                    </ul>
                                                </li>
                                                <li class="menu-item-has-children">
                                                    <a href="shop.html">headphone</a>
                                                    <ul class="dropdown">
                                                        <li><a href="shop.html">Desktop Headphone</a></li>
                                                        <li><a href="shop.html">Mobile Headphone</a></li>
                                                        <li><a href="shop.html">Wireless Headphone</a></li>
                                                        <li><a href="shop.html">LED Headphone</a></li>
                                                    </ul>
                                                </li>
                                            </ul><!-- Mega Category Menu End -->
                                        </li>
                                        <li class="menu-item-has-children"><a href="shop.html">Fresh Meat</a>
                                            <!-- Mega Category Menu Start -->
                                            <ul class="category-mega-menu dropdown three-column">
                                                <li class="menu-item-has-children">
                                                    <a href="shop.html">Smartphone</a>
                                                    <ul class="dropdown">
                                                        <li><a href="shop.html">Samsome</a></li>
                                                        <li><a href="shop.html">GL Stylus</a></li>
                                                        <li><a href="shop.html">Uawei</a></li>
                                                        <li><a href="shop.html">Cherry Berry</a></li>
                                                        <li><a href="shop.html">uPhone</a></li>
                                                    </ul>
                                                </li>
                                                <li class="menu-item-has-children">
                                                    <a href="shop.html">headphone</a>
                                                    <ul class="dropdown">
                                                        <li><a href="shop.html">Desktop Headphone</a></li>
                                                        <li><a href="shop.html">Mobile Headphone</a></li>
                                                        <li><a href="shop.html">Wireless Headphone</a></li>
                                                        <li><a href="shop.html">LED Headphone</a></li>
                                                        <li><a href="shop.html">Over-ear</a></li>
                                                    </ul>
                                                </li>
                                                <li class="menu-item-has-children">
                                                    <a href="shop.html">accessories</a>
                                                    <ul class="dropdown">
                                                        <li><a href="shop.html">Power Bank</a></li>
                                                        <li><a href="shop.html">Data Cable</a></li>
                                                        <li><a href="shop.html">Power Cable</a></li>
                                                        <li><a href="shop.html">Battery</a></li>
                                                        <li><a href="shop.html">OTG Cable</a></li>
                                                    </ul>
                                                </li>
                                            </ul><!-- Mega Category Menu End -->
                                        </li>
                                        <li class="menu-item-has-children"><a href="shop.html">dairy &amp; eggs</a>
                                            <!-- Mega Category Menu Start -->
                                            <ul class="category-mega-menu dropdown two-column">
                                                <li class="menu-item-has-children">
                                                    <a href="shop.html">Smartphone</a>
                                                    <ul class="dropdown">
                                                        <li><a href="shop.html">Samsome</a></li>
                                                        <li><a href="shop.html">GL Stylus</a></li>
                                                        <li><a href="shop.html">Uawei</a></li>
                                                        <li><a href="shop.html">Cherry Berry</a></li>
                                                    </ul>
                                                </li>
                                                <li class="menu-item-has-children">
                                                    <a href="shop.html">headphone</a>
                                                    <ul class="dropdown">
                                                        <li><a href="shop.html">Desktop Headphone</a></li>
                                                        <li><a href="shop.html">Mobile Headphone</a></li>
                                                        <li><a href="shop.html">Wireless Headphone</a></li>
                                                        <li><a href="shop.html">LED Headphone</a></li>
                                                    </ul>
                                                </li>
                                            </ul><!-- Mega Category Menu End -->
                                        </li>
                                        <li><a href="shop.html">Frozen</a></li>
                                        <li><a href="shop.html">Grocery</a></li>
                                        <li><a href="shop.html">Kitchenware</a></li>
                                        <li><a href="shop.html">Tools</a></li>
                                        <li><a href="shop.html">Electronics</a></li>
                                        <li><a href="shop.html">Kitchenware</a></li>
                                        <li><a href="shop.html">Tools</a></li>
                                        <li><a href="shop.html">Electronics</a></li>
                                        <li><a href="shop.html">Electronics</a></li>
                                    </ul>

I don’t think there exists a property with the name “tplCategory”.
When should this template be used?


Also can you maybe explain what your “pdoMenu” call outputs now and what exactly should be different?

The Perm screenshot shows what I’m getting at. The second one shows how it should be. Level 3 - the product is not displayed correctly

There seems to exist a property “tplCategoryFolder”.
Maybe that is what you need to use?


Those screenshots aren’t very helpful, as I don’t know how your resources are structured.

understood. here is my website, here is the source code

The problem seems to be, that in the innermost list <ul class="category-mega-menu dropdown"> is used instead of <ul class="dropdown">.

If you can’t make it work by using “tplCategoryFolder” instead of “tplCategory”,
then maybe try a solution like described here, where you output a different value based on the level.