Forum

Thread tagged as: Question, Problem

perch_item_index - creating field in edit screen

Hi,

I've created an image slider and am using perch_item_index to give each "slide" a unique reference like id="slide1" / "slide2" etc.

This is working fine :)

However, the edit screen shows an additional input field above the rest.

Here's my template:

<div class="slide" data-animation="fade, rotateccw" id="slide<perch:content id="perch_item_index" label="Slide Index" title="true" />">
    <div class="slide-content container-fluid">
        <div class="row-fluid" data-top="10%" id="slide<perch:content id="perch_item_index" label="Content Index" title="true" />_content" >
            <div class="span5 offset1">
                <h2 class="background-blue text-left"><perch:content id="heading" type="text" label="Heading" required="true" title="true" /></h2>
                <perch:if exists="subheading">
                    <h3 class="background-lightgray text-left"><perch:content id="subheading" type="text" label="Sub Heading" title="true" /></h3>
                </perch:if>
                <perch:if exists="tagline1">
                    <p class="background-darkblue"><perch:content id="tagline1" type="text" label="Tag Line 1" title="true" /></p>
                </perch:if>
                <perch:if exists="tagline2">
                    <p class="background-darkblue"><perch:content id="tagline2" type="text" label="Tag Line 2" title="true" /></p>
                </perch:if>
                <perch:if exists="tagline3">
                    <p class="background-darkblue"><perch:content id="tagline3" type="text" label="Tag Line 3" title="true" /></p>
                </perch:if>
                <perch:if exists="tagline4">
                    <p class="background-darkblue"><perch:content id="tagline4" type="text" label="Tag Line 4" title="true" /></p>
                </perch:if>
            </div>
        </div>
    </div>
    <img src="<perch:content type="image" id="image" label="Image" width="1920" />" alt="<perch:content type="text" id="alt" label="SEO Description Text" required="true" help="Enter the Sector Name e.g. Commercial Recruitment" title="true" />" class="background-image" />
</div>

I added in the [ label="Slide Index" title="true" ] to allow me to see what was causing the additional input field.

I can't see how to get rid of this extra input.

Help please :)

Thanks Steve

Steve Counsell

Steve Counsell 0 points

  • 6 years ago
Rachel Andrew

Rachel Andrew 394 points
Perch Support

Rachel Andrew said:

https://docs.grabaperch.com/docs/templates/attributes/type/hidden/

OH, it's so obvious!

Thanks so much for the super fast response...:)