Answer the question
In order to leave comments, you need to log in
Modx revo, how to sort resources on click?
Recently I started to study modx, there is such a question:
There is an output of resources on the page through PdoResourse
There is a Select tag and 2 options: by date, alphabetically.
How to make sure that when you click in Select on an option, the sorting is what you need? I am attaching screenshots for clarity.
Is there a way to do this without self-written snippets (didn't learn how to write snippets)?
Resource output
Answer the question
In order to leave comments, you need to log in
Hello, without a snippet in any way, because pdoResources has already displayed resources on the site based on the &sortby parameter, and you cannot change the parameter through select.
Here is an example of how simple sorting is done, it is not difficult there, all codes are presented with comments - https://modx.ru/novosti-i-stati/article/216
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question