cms_pageoptions

We need your assistance to make the documentation accurate, user friendly and understandable. Therefore we welcome any tips or suggestions regarding documentation. Thank you in advance for your contribution.

However, we will not respond to technical support questions submitted using this form. If you are having difficulty with CMSMS and cannot find the solution on this website, please submit your question appropriately on our support forum at: http://forum.cmsmadesimple.org. Please remember to follow the forum rules when posting.

CMS Made Simple™ Partner



   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>