wildfang Member
@wildfang · Joined 5 years ago · 10 posts · 1 topics · 1 reputation
Badges
Recent posts
-
Newbie problem: Can not get collection json output
· 5 years ago
I got it! My page.html.twig was in the way! It's perfect! THANK YOU SO MUCH!!
-
Newbie problem: Can not get collection json output
· 5 years ago
Good morning! Thank you very much, that brought me almost to the finish line... But the output of the flex-items themselves are still in HMTL, which is now embedded in json. How can I get "naked" json
-
Newbie problem: Can not get collection json output
· 5 years ago
Yes, I copied it from flex-object plugin. This is the content: {% block content %} {% block page_content %} {{ page.content|json_encode|raw }} {% endblock %} {% block flex_content %} {% set optio
-
Newbie problem: Can not get collection json output
· 5 years ago
They both get rendered, default.html.twig renders the normal pages and flex-objects.html.twig seems to render the page that shall list the collection. I have created the user/templates/flex-objects.js
-
Newbie problem: Can not get collection json output
· 5 years ago
So far, I have: The page for the collection is called test and the template seems to be /user/templates/flex-objects.html.twig. Here, I can set {{ page.content|json_encode|raw }} and the page then
-
Newbie problem: Can not get collection json output
· 5 years ago
Well, I've been toying around with this and in user/templates I have found default.html.twig to be working. I tried {% block content %} { 'content' : {{ page.content|json_encode }} } {% endblock %} An
-
Newbie problem: Can not get collection json output
· 5 years ago
Thank you very much. However, I can't find any place where page.html.twig gets called. I have found a default.html.twig in quark/templates, which has {% extends 'partials/base.html.twig' %} {% block
-
Newbie problem: Can not get collection json output
· 5 years ago
I've been following this example: https://github.com/trilbymedia/grav-plugin-flex-objects I put the templates into user/themes/quark/templates/flex-objects/layouts/testjson/collection and /objects I h
-
Newbie problem: Can not get collection json output
· 5 years ago
So far, nothing more than "this is default.json.twig" to see if the file gets actually parsed. No bueno?
-
Newbie problem: Can not get collection json output
· 5 years ago
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