Selasa, 21 Februari 2017

CMS CANVAS - PAGINATION

source:
https://github.com/diyphpdeveloper/cms-canvas/issues/13

caranya:
I have figured it out. I'm posting my steps here in the event someone else runs into the same issue.
Step 1 - Go to the content type for which you want to enable pagination, then settings and check the box that says Dynamic routing.
Step 2 - In the field that appears after ticking the checkbox above enter the url slug of your page e.g. "blog" so that the full url reads http://mywebsite.com/blog.
Step 3 - In your template add the following tags within your content loop:
{{paginate}} {{ pagination_links }} {{/paginate}}
Step 4 - Add the following parameter (paginate = "top" (or "bottom", or "both")) inside the content opening tags e.g. {{ content:entries limit="10" paginate="top"}} what this does is pagintate your result set by 10 items.
Hope this helps someone else!