Thread tagged as: Question, Problem, Configuration

Paginate a list in list and detail page.

I have a list and detail page where the list "a series of images in a grid" serving as buttons linked to the "detail page" is getting to many for the page.

Am I able to shorten that list by using pagination? I've got the following but does not work it ignores 'pagination' but does limits the list to a 'count' of 12...

          // my grid of image links
          perch_content_custom('Brides', array(
               'template' => 'bride_image_listing.html',
               'paginate' => true,
               'count' => 12,

It this a step too far?

David Owen

David Owen 0 points

  • 5 years ago
Rachel Andrew

Rachel Andrew 394 points
Perch Support

What does your template look like for the pagination?

This it the template for the image list view.

<li class="brideimagefeed">
     <a href="our-brides-<perch:content id="slug" type="slug" />" class="piclink" title="<perch:content id="title" type="text" />" >
          <perch:content id="image" type="image" width="300" height="300" crop="true" output="tag" />

Can you paginate the list view of a list and detail page?

Rachel Andrew said:

What does your template look like for the pagination?

Do you mean the default.html or page-links.html in the pagination template folder

Ah! got it. My error. The pagination is not in the list template.

Drew McLellan

Drew McLellan 2638 points
Perch Support

bride_image_listing.html. If it's the one above then it doesn't look like it has any pagination links in it.