Forum
Blog Posts Layout
Hello,
I thought I would ask before I went straight to CSS in case Perch had a possible solution that would make this easier. I would like to create this layout for my blog posts: https://zurimagazine.com/example.jpg however I have a couple of concerns of how it would actually work.
- How will i tell perch to make every 3rd post a wide image?
- Would it be easier to create a field that my content creators can tick to use the wide image template when publishing a post?
- Is there a way to guarantee that the wide image style post will only be used on every 3rd post?
Any ideas are appreciated. Nathaniel
Use a
<perch:every>
tag in your template.Add both the wide and the regular image - you'll need both as when you add another post, the 3rd item will change.
Yes - as above.
Drew this is exactly what I was looking for, thank you very much
Hey Drew,
Just to double check, this would be the right way to do it
I think you want something along the lines of
Ah, thank you