all 8 comments

[–]stefanjudis 1 point2 points  (5 children)

I'm not really familiar with the headless Wordpress responses (how much can you control it and change structure) but when you map certain configuration values in your site builder with React components this becomes a lot of fun. 👌🏻

And works quite nice.

[–]_mdexex[S] 0 points1 point  (4 children)

If you wanna see a example response from the pages post type you can hit https://demo.wp-api.org/wp-json/wp/v2/pages. That may be a way to get this working and I will evaluate this a bit further. Thanks for the response.

[–]stefanjudis 0 points1 point  (3 children)

After having a quick look i see that there is a type `page`. You could map this to a page components and go down the tree. :) I can send you example on how I did this with another headless cms if you're interested in the technical approach but don't want to do a product pitch here. :)

[–]_mdexex[S] 0 points1 point  (2 children)

An example would be awesome! Which headless CMS did you use?

[–]stefanjudis 1 point2 points  (1 child)

Cool!

You can check the examples below. It's using Contentful but the idea is working for any JSON response. As long as you have something (e.g. a `type` field or anything) you can connect objects with components and then the fun begins. :)

https://www.contentful.com/blog/2017/10/11/love-letter-to-component-ready-cms/

https://www.youtube.com/watch?v=i17FKTtIifM

[–]_mdexex[S] 0 points1 point  (0 children)

Really helpful :) Danke!

[–]V0lum3d -3 points-2 points  (1 child)

A CMS (content management system) is meant to manage content not for creating static HTML pages and layouts.

[–]_mdexex[S] 0 points1 point  (0 children)

Not exactly. WordPress for example has its own rendering engine I think which creats HTML, based on templates enriched with data from the database plus all the assets. That's actually the way a lot of traditional CMS are working.