Can I paginate site.most_recent_petition_pages ?

I'm trying to show my petitions on a page. I have it working using {% for page in site.most_recent_petition_pages %} which the documentation says returns a paginated array of the latest 20 petitions.

But pagination is not displaying. You can see the page here: http://bullhorn.nationofchange.org/

I'm justing using the for loop like above. I've tried adding | paginate but that doesn't do it either.

Is it possible to show pagination for this?

Incomplete

Official response from

Hi Caleb, did you see the email below from Brian?

Please let us know if there are any more details you can share! You can add them here or email help@nationbuilder.com.


 

Can you send me a link to the page that you are trying to paginate the site.most_recent_petition_pages array on? It could be a number of things, ranging from a typo (for example, text that you submitted is missing some percentage signs in the liquid tags) to something larger, such as the wrong 'object' being referred to, or it could be functionality that should work (based on our documentation) but does not. That type of thing has come up before when using liquid syntax that is commonly used.

We can take a deeper look if you send along a link to the template and the live page in which the liquid error is showing up.

Complete and current information on how to use NationBuilder is available in the documentation section.

Share this post

Showing 2 reactions

How would you tag this suggestion?
Please check your e-mail for a link to activate your account.