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

  • Select items from a pages list · 9 years ago

    @gyran The content creators on the site isn't that technical so it will be a bit hard for them to understand which testimonials they are selecting but it's better then trying to maintain testimonials

  • Select items from a pages list · 9 years ago

    I can't get a blueprint to store anything else then a string for an array type..

  • Select items from a pages list · 9 years ago

    Thanks, that would work. The content creators on the site isn't that technical so it will be a bit hard for them to understand which testimonials they are selecting but it's better then trying to main

  • Select items from a pages list · 9 years ago

    Hmm, I think your solution with key value could work actually

  • Select items from a pages list · 9 years ago

    Well, you can just add conditions {% for item in page.find('/testimonials').header.content.testimonials if item.type == "customer" %} <h2>{{ item.name}}</h2> <p>{{ item.type }} - {{

  • Select items from a pages list · 9 years ago

    Then I could have done something like {% for testimonialId in page.header.content.testimonialIds %} {% set t = page.find('/testimonials').header.content.testimonials[testimonialId] %} <h2>{{ t.

  • Select items from a pages list · 9 years ago

    If I only want a few of the testimonials? And pick those in the page? I have thought about having a list where I can specify they keys for the testimonials I want. But then I have to somehow store the

  • Select items from a pages list · 9 years ago

    You can just use page.find(/yoururl) example if you want to display your testimonial on another page: {% for item in page.find('/testimonials').header.content.testimonials %} <h2>{{ item.name}}&

  • Select items from a pages list · 9 years ago

    I have a bunch of testimonials I want to show on different pages so I have set up a page with a blueprint like this: ---yaml header.content.testimonials: type: list label: Testimonials field

  • Snipcart add to cart different sizes · 9 years ago

    Sorry for the late reply. I ended using paypal buttons. So no real solution with snipcart... sorry