Настройка pdoMenu

Здравствуйте. Помогите с pdoMenu.

  1. Видеонаблюдение - содержит два раздела Видеорегистраторы и Видеокамеры.
    Видеокамеры содержит подразделы, они не отображаются .

  2. Контроль доступа содержит подразделы - не раскрываются(

  3. Заземление и молниезащита - не раскрывается
    4.Кабельная продукция - содержит ресурсы. не переходит

  4. Металлодетекторы - содержит ресурсы, раскрывается , а не переходит
    2022-08-05_162215

<div class="category-list clearfix" id="bootstrap" role="tablist">
  [[pdoMenu?
    &parents=`3`
    &level=`3`
    &tpl=`@INLINE <li><a href="[[+uri]]">[[+menutitle]]</a></li>`
    &tplInner=``
    &tplInnerRow=``
    &tplOuter=`@INLINE [[+wrapper]]`
    &tplParentRow=`@INLINE <div class="panel panel-default">
      <div class="panel-heading">
        <li>
          <a role="button" data-toggle="collapse" data-parent="#bootstrap" href="#[[+menutitle]]">
          [[+pagetitle]]
        </a>
      </li>
    </div>
    <div id="[[+menutitle]]" class="panel-collapse collapse in">
      <div class="panel-body">
        <ul>
          [[+wrapper]]
        </ul>
      </div>
    </div>
  </div>`
  ]]
</div>

So this is an english speaking forum. If you want help, then please write your question in english.
If you prefer communicating in russian, then I think there are specific forums in russian. Maybe Вопросы / Русскоязычное сообщество MODX but I have no idea.


Regarding your question:

  • Make sure that the “Container” (Контейнер) checkbox is set for all resources with children.
  • Make sure that the “Hide From Menus” (Скрыть из меню) checkbox is unset for all resources that should appear in the menu
  • Also maybe you have to set the level property &level=`3` to a higher number to see the whole hierarchy.

Hello. I will be in English. I thought that they write in different languages.
As for the menu, level 10, the container is enabled. Has not changed.


site

<div class="category-list clearfix" id="bootstrap" role="tablist">
  [[pdoMenu?
    &parents=`3`
    &level=`10`
    &tpl=`@INLINE <li><a href="[[+uri]]">[[+menutitle]]</a></li>`
    &tplInner=``
    &tplInnerRow=``
    &tplOuter=`@INLINE [[+wrapper]]`
    &tplParentRow=`@INLINE <div class="panel panel-default">
      <div class="panel-heading">
        <li>
          <a role="button" data-toggle="collapse" data-parent="#bootstrap" href="#[[+menutitle]]">
          [[+pagetitle]]
        </a>
      </li>
    </div>
    <div id="[[+menutitle]]" class="panel-collapse collapse in">
      <div class="panel-body">
        <ul>
          [[+wrapper]]
        </ul>
      </div>
    </div>
  </div>`
  ]]
</div>```

As far as I can tell, all the data is in the output. Some parts are just not displayed (display: none;).

To me it looks like the pdoMenu call is correct, but maybe your Javascript code (or maybe CSS) doesn’t work correctly.

clear. Thanks. I’ll try something

content_copy

share