A
A
Alexander Vyalykh2017-04-21 01:29:04
MODX
Alexander Vyalykh, 2017-04-21 01:29:04

How to display categories and subcategories?

Help display categories and subcategories with this template.

<div class="category">
  <div class="gl">
    <div>ЗДЕСЬ НАЗВАНИЕ КАТЕГОРИИ</div>
    <div>
      <img src="assets/img/board1.png">
    </div>
  </div>
  <div class="sub-categories">
    <ul>
             <li>ЗДЕСЬ СПИСОК ПОДКАТЕГОРИЙ</li>
          </ul>
  </div>
</div>

All that I got was the output of the category into which this code is inserted again but with a subcategory

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander Vyalykh, 2017-04-21
@alvcode

I found the solution myself using wayfinder:
&outerTpl is the template of the entire menu container
&rowTpl is the template of the menu item
&innerTpl is the template of the submenu container
&innerRowTpl is the template of the submenu items

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question