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

  • New theme using CLI commands · 10 years ago

    When i`am create a new theme with the command: $ bin/plugin devtools new-theme After the request "Please choose a template type" a message appears: PHP Notice: Undefined variable: output in ... /

  • Alt text in responsive images. Posible? · 10 years ago

    Thank you very much, everything works!

  • Alt text in responsive images. Posible? · 10 years ago

    Mhm, maybe like this? {% for image in page.media.images %} {{ image.sizes('80vw').html(page.parent.title, page.title, 'myClassName') }} {% endfor %} The html() function, outputs the image tag and y

  • Alt text in responsive images. Posible? · 10 years ago

    Is it possible to attach to responsive images alt text without creating sample-image.jpg.meta.yaml? {% for image in page.media.images %} <img class="" {{ image.sizes('80vw').html() }}> {% endfor

  • @blueprints: ordering > push field to end · 10 years ago

    When adding fields to blueprints, you can change there order. I have two questions regarding this. When adding fields to the content tab they will always appear behind the content editor and uploads

  • Struggling to get values from an array · 10 years ago

    Awesome, thank you

  • Struggling to get values from an array · 10 years ago

    The special Twig loop variable is only valid in the within the most recent loop. If you want to catch loop.first in the outer loop and use that information in the inner loop, you need to store that va

  • Struggling to get values from an array · 10 years ago

    I'm lost again on something here - any idea how to get the loop.first from the original loop whilst in the second loop? E.g. {% for download in page.header.downloads %} {% for item in download.dl %}

  • Struggling to get values from an array · 10 years ago

    Ok cool thanks I see what you mean now. Cheers

  • Struggling to get values from an array · 10 years ago

    As Perlkonig points out in his example, you generally never want to override a parent variable. In your example, you do: {% for item in page.header.downloads %} {% for item in item.dl %} Which rende