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

Community guidelines

Please keep discussions civil and on-topic. Repeated violations may lead to a temporary ban.

Simon Simfin Member

@simfin · Joined 3 years ago · 16 posts · 5 topics · 0 reputation

Badges

✏️ First Post 💬 Conversation Starter

Recent posts

  • Pages dated 31 December not showing in year date range · 1 year ago

    I have a filter to display pages/posts in a yearly date range like this: {% set pages_2024 = page.collection.dateRange('01/01/2024','12/31/2024') %} This works well except it doesn't display any page/

  • Remove trailing slash on void elements · 3 years ago

    Thanks for the tip - I'll check it out and report back.

  • Remove trailing slash on void elements · 3 years ago

    I'd like to remove trailing slashes from void elements in my markup. I know I can do this with Javascript but I'd prefer to do it at source (PHP) esp for the img tag. Could anyone point me to the rele

  • Help with array_unique function · 3 years ago

    That's great for now - thanks for your help.

  • Help with array_unique function · 3 years ago

    Thanks. I'd seen the array_unique entry in the docs - but I can't see how to use it. Could anyone give me a simple example please? Thank you.

  • Help with array_unique function · 3 years ago

    Hi. I'm a relative newbie putting together a simple theme for personal use. I have a loop which gets all the years of pages: {% for page in pages.children.visible.order('date', 'desc') %} {% set y