Hello, I have two questions as I try to have a Prev Next to my Productions
The first one, I use french as language, so I add num: '{{ page.calendrier.toDate("%Y%m%d") }}' to get the date from a structure calendrier, but it print the date wrongly, I tried with Ymd but then it print 0_, what is the correct syntax? Thanks
My page productions has 2 listed children production (those I want to appear in the PrevNext pagination) and collections (those I don’t want to appear). The Prevnext pagination is working (with the 0_title… the chronological order is wrong though), but I lack understanding because the first or last production item will always have a collections item comming next or prev. I try to filterBy template collection but it didn’t work. Is it wrong to have those two listed children in the same page? I am confused
Thank you in advance
You can pass the filtered collection (i.e. children filtered by template production) as parameter to those methods. Then it only moves between these selected pages.
Thanks and sorry, I try my best but still not good.
From the page production I call the snippet prevnext <?php snippet('prevnext', ['productions' => collection('productions')]) ?>
I feel stupid, the prev and next are printing all the production pages with template production and I don’t know how to do it… if you can help me I really appreciate as you can see I’m still struggling with collection
Thank you texnixe, it’s not working. I suppose I must keep the foreach $productions as $production, but without result. When I echo the $prev I’ve got a serie of 1.
I will study more the starterkit this weekend, good weekend.