Hello there.
Very new to Grav but not new to web development.
What I want:
Make a new custom post type (flex object) and then pull all the posts from json to display in another application.
What I did:
Create yaml in blueprint, activate it in the flex-objects plugin, create a few posts in backend. This all works fine. I created a new page (flex-objects with my type as collection) and I can list all the posts in the page as html nicely.
What doesn't work:
Next to the collection/default.html.twig, I also created a default.json.twig that's supposed to give me the json of all the objects. But it doesn't. If I call the /page.json, it will still give me the html output.
I'm stuck here how I can get the json output. I'm pretty sure it's very simple and I'm just missing one crucial step.
Thank you very much in advance!
Kind regards