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

  • How to tell a page to use a type of blueprint? · 10 years ago

    Have you checked out this info yet? https://learn.getgrav.org/forms/blueprints/example-page-blueprint Here are a few actual samples too: https://github.com/hibbitts-design/grav-theme-course-hub-bootst

  • How to tell a page to use a type of blueprint? · 10 years ago

    If I'm using the admin plugin to create pages, how can I choose the type of blueprint I want to use when making a new page? I can choose the template when creating but not the blueprint... am I missin

  • Resizing media with only the image path · 10 years ago

    Hi Rhuk, Grav is doing that - this is my blueprint yaml bit: header.gallery: type: file style: vertical label: Page Gallery destination: '@self' multiple: true limit: 50 filesize: 2 ac

  • Resizing media with only the image path · 10 years ago

    Why are you storing the full path to the file in the YAML??? It would work with this: gallery2: - name: cows.jpg type: image/jpeg size: 66442 - name:

  • Resizing media with only the image path · 10 years ago

    In case anyone else reads this, the solution is: {% for item in page.header.gallery %} <img class="img-responsive" src="{{ page.media[item.name].cropZoom(600,400).quality(100).url() }}">

  • Resizing media with only the image path · 10 years ago

    Hey thanks for the help - however, none of those worked :(

  • Resizing media with only the image path · 10 years ago

    Update: Thsi should give you the solution! ---twig {% for item in page.header.gallery2 %} {{ page.find(item.path).media[item.name].cropZoom(600,400).quality(100).html('','','img-responsive') }} {% end

  • Resizing media with only the image path · 10 years ago

    Hello, I don't know if it works. But maybe you try something like this: ---twig {% for item in page.header.gallery2 %} <img class="img-responsive" src="{{ page.find(item.path).media[item.name].cro

  • Resizing media with only the image path · 10 years ago

    So, for anyone who is interested - this works: {% for item in page.header.gallery2 %} <img class="img-responsive" src="{{ item.path }}"> {% endfor %} But just outputs the image straig

  • Resizing media with only the image path · 10 years ago

    Anyone know a way to use the media image resizing function when you only have the image path? So e.g. {{ image.cropZoom(600,400).quality(100).html() }} would output the image IF grav knows it's an ima