U
U
Ufolob2019-07-21 14:37:05
Vue.js
Ufolob, 2019-07-21 14:37:05

Is it possible to initialize the creation of a page in nuxt.js using php?

Hello. Tell me please. I'm just researching the issue and couldn't find any information anywhere. I plan to study the nuxt.js bundle with modx. Can someone tell me if it is possible to somehow initialize the appearance of working pages as .vue files in the "pages" folder using php in the ready-made (dist) nuxt application on the hosting? How to properly receive new created pages (for example, a product from a catalog) by the php framework as .vue files? Where to dig?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
F
FullStack Alex, 2019-07-30
@FullStackAlex

I'm not modx savvy and didn't fully understand the question, but I recently made a solution to (it seems) a similar problem with WordPress without nuxt.js:
https://wue-theme.app
https://github.com/Tech-Nomad/wue -theme Nuxt.js
is only suitable for Headless CMS. CMS in this case acts only as a REST API. But what you want, as I understand it, is not headless. Therefore, you will have to get rid of Nuxt.js and implement Dynamic Rendering in combination with providing data via PHP when the application is first loaded. Then it will be necessary to "simply" synchronize the routes modx along with the routes from vue-router and no creation of Vue files on the server is necessary.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question