Forum

Thread tagged as: Question, Problem, Runway

Listing Pages so I can select for a link

Hi,

What I want to do is either list all the pages or all the pages with a category so I can use the page slug for the <a href> link.

Example content for the main page.

<perch:repeater id="Projects" Label="Projects" max="4">
    <div class="span3">
        <h5 class="text-info">
            <perch:content id="ProjectTitle" type="text" size="l" label="Project Title"/>
        </h5>

        <img src="<perch:content id="ProjectImage" type="image" label="Project Image"/>" class="img-polaroid" style="margin:5px 0px 15px;" alt="<perch:content id="ProjectTitle"/>"/>                


        <perch:content id="ProjectIntro" type="textarea" editor="ckeditor" markdown="false" html="true" label="Project Intro"/>

        <p><a href="#">Read More &raquo;</a></p>
    </div>
</perch:repeater>

I need to be able to populate the <a href="#"> tag.

Any ideas?

Dennis Pickworth

Dennis Pickworth 0 points

  • 6 years ago
Rachel Andrew

Rachel Andrew 394 points
Perch Support

That sounds like you need the pagelist Field Type https://grabaperch.com/add-ons/field-types/pagelist