Pagination not showing for perch_content_custom multiple region

  • I'm using a multiple region as a simple blog for a client.


    Code
    1. perch_content_create('Articles', array(
    2. 'template' => 'blog/blog_article.html',
    3. 'multiple' => true,
    4. ));

    This region is then called into the page:


    PHP
    1. <?php perch_content_custom('Articles', array(
    2. 'template' => 'blog/blog_article.html',
    3. 'count' => 2,
    4. 'paginate' => true,
    5. 'page-links' => true,
    6. ));

    The articles show, and the count value works fine but the standard pagination doesn't show.


    Is there something I'm missing?

  • The blog article template is as follows:


    Code
    1. <div class="article section">
    2. <h2><perch:content id="title" label="Title" title /></h2>
    3. <h6 class="date"><perch:content id="event_date" type="date" label="Date of event" format="D d F y" /></h6>
    4. <perch:template path="content/blocks/blocks.html">
    5. </div><!--/.section-->


    Should there be markup in there for where the pagination links appear?


    The pages php is as follows:


  • Thanks, your response has pointed me in the right direction. This page as the answer:


    https://docs.grabaperch.com/templates/pagination/


    Adding this code to the template has got me started.


    The perch_content_custom docs had me believe a default would appear as it does for site nav:


    page-links True or false. Create numbered page links as well as previous and next links.
    page-link-template The template to use (if not the default) to generate the page links.