Answer the question
In order to leave comments, you need to log in
How to make pages open without reloading on MODX?
Good day to all. Please tell me in detail how to set up MODX so that it opens pages without reloading them, like in VK, for example. I've looked all over the internet and haven't found anything similar. Please explain in detail what to install or give a link with the manul
Answer the question
In order to leave comments, you need to log in
called SPA (single page application). implemented using a JS framework that pulls the API.
ModX Revo backend is built on Modx API + Ext JS (modified for Modx ). Accordingly, to build a SPA front, you can use these technologies.
ps but in my opinion this is a perversion - if you have enough qualifications to make applications that work on the API and to build the API - then why do you need ModX ?
Add an addEventListener to all links that lead to the pages of the site, block the behavior of e.preventDefault() in it, and make an ajax request to the site at the desired url. After loading, you change the contents of the page and so on in a circle.
MODX also has plugins, and if you learn how to google, then the first result will be the desired plugin: https://modx.com/extras/package/modajaxifyasimplea...
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question