cms_pageoptions
Purpose
This is a simple plugin to generate a sequence of <option> tags for a dropdown list that represent page numbers in a pagination.
Given the number of pages, and the current page this plugin will generate a list of page numbers that allow quick navigation to a subset of the pages.
Available parameters
- numpages - required integer - The total number of available pages to display.
- curpage - required integer - The current page number (must be greater than 0 and less than or equal to "numpages"
- surround - (optional integer) - The number of items to surround the current page by. The default value for this parameter is 3.
- bare - (optional boolean) - Do not output
Example
<select name="{$actionid}pagenum">{cms_pageoptions numpages=50 curpage=14}</select>