Forum
Solve adding a placeholder-item to a list (perch:every)
Hard to find a good subject for this one.
I have a list of employees in a grid, so I use perch:every
to insert som extra divs for every third employee. Easy.
But, as the last item in the list, I want a placeholder ("we want to employ you") item that should also count againt the "every third"-rule.
How do I do that?
Could that be solved in the CSS?. Maybe try the pseudo-selector last-child?
(https://www.w3schools.com/cssref/sel_last-child.asp)
Can you post your template code?
I would just add it as a content item - it is content. If you don't want to do that, test the position in your
<perch:after>
section and then write out one or two extras.