Forum

Thread tagged as: Question

perch before/after

Hi,

It seems Perch Before and After tags don't work as I would like:


<perch:before> <perch:content id="na" type="select" options="Zilch" label="Regulator" suppress="true" allowempty="true" /> <perch:if id="na" value="Zilch"> <p>Not Applicable</p> </perch:if> </perch:before> <perch:after> <div class="accordion"> <div class="head"> <i class="fa fa-chevron-down"></i> <h5>Licensing and Regulatory Information</h5> </div> <div class="content"> <perch:repeater id="licenseparagraph" label="License Paragraphs"> <p><perch:content id="licenseparagraphs" type="textarea" label="License Paragraph" /></p> </perch:repeater> </div> </div> </perch:after>
Garth Holmes

Garth Holmes 1 points

  • 6 years ago
Rachel Andrew

Rachel Andrew 394 points
Perch Support

You haven't explained what you don't like or what issue you are having.

My understanding of Perch Before or After means that any fields or content contained within, are not rendered but this is not the case.

Drew McLellan

Drew McLellan 2638 points
Perch Support

For templates that are used to display multiple items, a <perch:before> section is output before the first item. A <perch:after> section is output after the last item.

If there are no items to display, neither section is output.