Forum

Thread tagged as: Question, Problem

Extra field in CMS

The following code from a template generates an extra field in the CMS - its within a before /pagination set up. (if I remove it - the field disappears) Despite many efforts cant get rid off it. Any help greatly appreciated.

<perch:before>
<perch:if exists="paging">
<div class="row margBott4">
<div class="col-md-12">
<div class="paging">
Page <perch:content id="current_page" type="hidden" /> of <perch:content id="number_of_pages" type="hidden" />
<perch:if exists="not_first_page">
<a href="<perch:content id="prev_url" type="hidden" encode="false" />">Previous</a>
</perch:if>
<perch:content id="page_links" encode="false" />
<perch:if exists="not_last_page">
<a href="<perch:content id="next_url" type="hidden" encode="false" />">Next</a>
</perch:if>
</div>
</div>
</div>
<div class="row">
</perch:if>
</perch:before>

<perch:content id="date" type="date" label="Date" format="%d %B %Y" suppress="true" />
<div class="masonryImage col-md-4">
<blockquote>
<perch:content id="menu" type="textarea" label="Testimonial" editor="ckeditor" html="true" />
<h5><strong><perch:content id="text" type="text" label="Client"  required="true" title="true" /></strong></h5>
</blockquote>
</div>
Phil Wragg

Phil Wragg 0 points

  • 7 years ago
Rachel Andrew

Rachel Andrew 394 points
Perch Support

If you inspect the extra field what is its id?

Hi Rachel

sorry for slow reply

<input id="perch_255_page_links" name="perch_255_page_links" value="" class="text " type="text">

many thanks

Drew McLellan

Drew McLellan 2638 points
Perch Support

Change

<perch:content id="page_links" encode="false" />

to

<perch:content id="page_links" encode="false" type="hidden" />

That's it! many thanks.