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.

Valentin Bossens Newcomer

@Valord · Joined 4 years ago · 5 posts · 1 topics · 0 reputation

Badges

✏️ First Post 💬 Conversation Starter

Recent posts

  • Page collection : Random but not self · 4 years ago

    Thanks for your help, I just solved it with that code: {% set random = random(page.collection({ items: '@self.siblings'}).published()) %}

  • Page collection : Random but not self · 4 years ago

    Sorry about that, I didn't thought about it this way ... I'll delete my post on the other forum.

  • Page collection : Random but not self · 4 years ago

    Yes, from what I understand from the documentation, it shouldn't displays the current page ... @self.siblings - All the sibling pages This collection will collect all the published Pages at the same

  • Page collection : Random but not self · 4 years ago

    Thanks for you fast answer. Sadly, it looks like it can still displays the current page ...

  • Page collection : Random but not self · 4 years ago

    Hey all, I'm currently developing an agency portfolio website where, on the projects pages, I'm displaying a random picked project at the end of the page. The idea is to have the user to be redirected