Skip to content
Grav 2.0 is officially stable. Read the announcement →

Muut Archive Legend

@Muut · Joined 9 years ago · 18337 posts · 3878 topics · 137 reputation

Badges

✏️ First Post 💬 Conversation Starter ❤️ Well Liked

Recent posts

  • Mobile Navigation - Photographer · 11 years ago

    Actually that was a bug. This change is already in develop branch and waiting to be released. You can see modified file here: https://github.com/getgrav/grav-theme-photographer/commit/187cad2c9c72ff4c

  • Mobile Navigation - Photographer · 11 years ago

    Hello! How to add navigation for mobile in Photographer Theme? Thanks!

  • JSON Question · 11 years ago

    ok nice to know. twig has a lot of options which i have to dig in deeper :)

  • JSON Question · 11 years ago

    You could try spaceless also: http://twig.sensiolabs.org/doc/tags/spaceless.html

  • JSON Question · 11 years ago

    nice!

  • JSON Question · 11 years ago

    ok right now i change the indentation and it works. so the first image is pulled out of the folder, the title, the categories out of the taxonomy tags and the url of the page ---twig [ {% for page in

  • JSON Question · 11 years ago

    i have something like this ---twig [ {% for page in page.children %} { "image": "{{ page.media.images|first.url }}", "name": "{{ page.title }}", "categories": ["Logo"], "url": "{{ page.url }}" {% if n

  • JSON Question · 11 years ago

    Here's what we have in the simplesearch plugin's simplesearch_resultsjson.twig file: {"results":[ {%- for search_result in search_results -%} {{- search_result.route|json_encode -}},{{ not loop.last ?

  • JSON Question · 11 years ago

    ok this was/is the reason. the parsed json is not valid and i have no clue how to get {{ page.title }} and so on in an array to let jsonencode via twig work...

  • JSON Question · 11 years ago

    ok i will try. i wondered that calling directly in browser works but in attribute not. so i have to check the javascript. thanks