Karmalakas Veteran
@Karmalakas · Joined 6 years ago · 1191 posts · 34 topics · 219 reputation
Badges
Recent posts
-
Output flex objects as JSON
· 6 years ago
A very simple plugin if you need to output flex objects in JSON format. Basically just a collection of extended templates. If you already use default flex-objects template provided by Flex Objects plu
-
Newbie problem: Can not get collection json output
· 6 years ago
OK, here it is 🙂 https://github.com/Karmalakas/grav-plugin-flex-objects-json Check the README how to use, install by using Manual method and tell me if that's what you wanted ;)
-
Newbie problem: Can not get collection json output
· 6 years ago
Could you paste the contents of /user/templates/flex-objects.html.twig? And where did it come from? Did you copy it from FO plugin? How both templates get rendered if both extend base template? I beli
-
Newbie problem: Can not get collection json output
· 6 years ago
Now I'm lost too. You said on several occasions I think, that /user/templates/default.html.twig is rendered, but now you say it's /user/templates/flex-objects.html.twig 🙂 Did you change something? Any
-
Newbie problem: Can not get collection json output
· 6 years ago
Do you see your objects on the page if you navigate to it without a .json extension? If so, I would have to figure out how collections are rendered 🤔 Could you also share the frontmatter of the resolv
-
Newbie problem: Can not get collection json output
· 6 years ago
Which template gets resolved (full path from /user would be good) when you visit your page without .json extension where you see your objects listed? I understand objects are listed on page, right?
-
Newbie problem: Can not get collection json output
· 6 years ago
OK, I think i know where you should start looking at. The place where you have {% include 'flex-objects/page.html.twig' %}. This most likely is called from another ...html.twig template, which your pa
-
Newbie problem: Can not get collection json output
· 6 years ago
I assume you did everything by this example and you have json listed in system.yaml (default is pages: types: [html,htm,xml,txt,json,rss,atom]) and you also have templates named as they should be de
-
Newbie problem: Can not get collection json output
· 6 years ago
What's in your default.json.twig?
-
Deactivated plugin still being used with Grav 1.7
· 6 years ago
I guess you can avoid saving of each value (at least to some extent) with toggleable: true