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

  • Get the image with name starting with · 10 years ago

    This works great indeed, but don't forget to clear the cache if you use ftp to rename the images... It took me a few hours before i found this 'error'..

  • Get the image with name starting with · 10 years ago

    You are my superhero! :) Everything works like a charm!

  • Get the image with name starting with · 10 years ago

    From my code try this: {% set bg_images = bg_images|merge([image]) %} Notice how the image in the item is now surrounded by square brackets, ensuring its wrapped in an array.

  • Get the image with name starting with · 10 years ago

    P.S. Thank you for your time! I know, designers are "pain in the ass" :)

  • Get the image with name starting with · 10 years ago

    @rhukster Thank you! But gives an error: The merge filter only works with arrays or "Traversable", got "object" as second argument in "portfolio.html.twig" at line 6. In portfolio.html.twig at line 6:

  • Get the image with name starting with · 10 years ago

    Try something like this: {# get all the images from the page media #} {% set images = page.media.images %} {# create an empty array to hold your bg images #} {% set bg_images = [] %} {# loop over al

  • Get the image with name starting with · 10 years ago

    Hello! How is it possible to get an image from "page.media.images" but only the images whose names do start from "bg_" and skip others. My mission: i need a variable which will be having something lik

  • Don't see my thumbnail with an mp4 video · 10 years ago

    Can you please create an issue on the Grav repo and we can investigate this: https://github.com/getgrav/grav/issues

  • Don't see my thumbnail with an mp4 video · 10 years ago

    I like to add an thumbnail / poster to my mp4 video, but i only see the actual video. This is the code in the page: And these are the files located in the page directory: test.mp4 test.mp4.thumb.jpg

  • Problem after update to 1.0.9 · 10 years ago

    OK here is the answer: ERROR is: a[href*=#]:not([href=#]) SOLUTION is: a[href*="#"]:not([href="#"]) selectors have to be identified as a string that is to say nested HERE is 2 REFERENCES: REFERENCE1 R