Answer the question
In order to leave comments, you need to log in
Modx and pdoTools how to add class depending on page?
How to deduce the active class to a.h6.transition depending on the page we are currently on. Now a crutch on JS
Output
Chunk
Site
Answer the question
In order to leave comments, you need to log in
Hello, can it be easier to do it through pdoMenu? There are active classes there, you just seem to have a link, pdoResources is redundant.
Judging by the screenshots, in each li, a snippet with its parent is called, this is somehow very wrong. And it has a bad effect on the reputation of modex.
In other words, it's generally Tin over time, the catalog will have thousands of resources and you pull them all onto the page, and maybe more than once.
Threat class to put the logic of setting the class is simply incomprehensible.
The link is cool. Does it lead to a page with the same drag-and-drop call but with a different template?
In general, among other things, there is pdopage just in case, but in general, the template logic is strange, and even with crutches in the front.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question