Good day. I ask for help, I can not implement a multi-level menu.
1.1 Video cameras
Camera IP - Transition
HD cameras - transition
IP DVRs - transition
HD DVRs - transition
It is also necessary that the active category be expanded.
A parent that contains resources and not a category didn’t show them
&depth is not a property, you should be using &level instead. Although the default of &level is set to 0 which is infinite depth, so probably not an issue for you.
Not sure why you would want those class names to be named 0. If you want to remove them, you can just leave them empty:
You can define a class name for any active items or categories with &hereClass (defaults to active). If you want to have your active items expanded, you have to handle that using CSS.
Not exactly sure what you mean by this, but if you are trying to show some resources or parents and some not, you can also exclude resources with the &resources property or even all resources with specific templates with the &template property by putting a hyphen in front of the ID:
// will not show the resource with ID 3
// will not show resources with template ID 5
For more have a read in the documentation (also available in russian).
There’s plenty more properties that might help you.
Hello. I usually use ready-made templates. This time the template did not have a vertical menu of several levels. I used what’s on our web with Bootstrap. I could not finish it and switched to Wayfinder.
Wayfinder did partially what was needed. I don’t know how to do what needs to be done.
pdoMenu is practically identical to Wayfinder. If the output of Wayfinder gives you a different result, then probably because you used different templates in the snippet call.
pdoMenu/Wayfinder is used to convert your resource-tree into some html-markup. If you need help creating some specific markup, then maybe we can help you here in this forum.
The way I always code complicated menus is by starting with the html hard-coded into the template, so I can make sure that the structure of the menu works as intended. After that I begin to figure out which parts of the structure to include in each of the templates available in pdoMenu (or Wayfinder or getResources).
In order for people to help you here, we need to see the actual HTML you want to get as the result. Not a screenshot, we need to see each tag and class and attribute and level. Then we can start to help you figure it out.