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

  • Cache check none and twig templates · 9 years ago

    Great! Thank you very much Flavio.

  • Cache check none and twig templates · 9 years ago

    You can disable Twig caching in the page header, or globally. See Never Cache Twig. Not aware of a way to do this in the Twig file directly.

  • Cache check none and twig templates · 9 years ago

    Hi guys, According to the Grav Documentation here: If automatic re-caching of changed pages it not critical to you, then setting this value (i.e. cache check) to none will speed a production environm

  • LightSlider - decrease hight · 9 years ago

    Hi, can somebody please help - I´m looking for a way to get a flexible hight for the LightSlider. I`m using the sora article theme. The width of the bg picture should be 100%. In the LS custom css I s

  • Merging a decade-old site with Grav? · 9 years ago

    You can simply put your physical folders in the Grav root folder, and they will take precedence over Grav's own routing. If you then want to integrate it a bit more, you could start by making a user/p

  • Merging a decade-old site with Grav? · 9 years ago

    So I'm working on a site for a music festival that's been going since 2001. Each year of the festival has been a different folder on the server. There hasn't ever been a CMS for it, every year has jus

  • Exclude page.media.images|first · 9 years ago

    :-) yeah Found a solution.... <div class="masonry-thumbs col-{{ header.gallery.cols }}" data-big="{{ header.gallery.big_picture }}" data-lightbox="gallery"> {% for image in page.medi

  • Exclude page.media.images|first · 9 years ago

    The logic of {% if not page.media.images|first %} is just going to check if there is nothing in page.media.images. In the for you can check the index of the loop, see http://twig.sensiolabs.org/doc/2.

  • Exclude page.media.images|first · 9 years ago

    I tried something like this - but not working... {% for image in page.media.images %} {% if not page.media.images|first %} <a href="{{ page.url }}" data-lightbox="gallery-item">{{ image.html }}&

  • Exclude page.media.images|first · 9 years ago

    I think you could just set a variable to be equal to page.media.images|first, and then you pull in the images for your gallery have a statement to the effect of, "for images in.... If not equal to &lt