Skip to content

Instantly share code, notes, and snippets.

@adamwiggall
Created August 5, 2011 00:55
Show Gist options
  • Save adamwiggall/1126698 to your computer and use it in GitHub Desktop.
Save adamwiggall/1126698 to your computer and use it in GitHub Desktop.
Pagination Page x of x (using Matrix)
Page {if segment_3}{exp:simple_math calculate="{segment_3}/{rows_per_page}+1"}{if:else}1{/if} of {exp:simple_math calculate="ceil({gallery_images:total_rows}/{rows_per_page})"}
site URLs work like ...com/gallery/gallery-name/{n}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment