How to replace the template on the fly?
For example, there is the pattern number somewhere in the session or in cookies. How can I substitute this value so that this value changed the number of template I need for a specific page during the download stage? You need to make it so that the value varied only one user, and not in the entire database.
1. But as You have templates associated with the DB(data base)?
2. Load phase comes after the stage of forming the html on the server using php and modx. Accordingly, there is need to insert the logic for choosing the template. If it is associated with the user, can be stored in the session.
4. Formulated very vague, add specifics.
Jaqueline.Parisian answered on July 9th 19 at 13:34
In Modx there are filters. Surely that will be enough.