Page 1 of 1

can't make pager work

PostPosted: Thu Jan 29, 2015 12:31 pm
by got10thumbs
I'm displaying a list currently of 31 items. I think I've followed the instructions at https://docs.bolt.cm/content-paging ; the relevant part of the template says:
Code: Select all
        {% setcontent plantlist = 'plants' orderby 'title' allowpaging %}
        {% for p in plantlist %}
           {{ p.title }} <br>
        {% endfor %}
        {{ pager() }}

But I'm getting no paging. When I inspected _sub_pager.twig I found references to a variable called
Code: Select all
surr
which seems to relate to the number of records per page, but which doesn't seem to be set anywhere that I can find; could that be relevant?

Can anyone tell me what I'm doing wrong?

Thomas