Pages API
The page module serves simple client area pages from templates named mod_page_<name>. This call lists them, for example to choose a page in a menu. See Themes and templates for how theme templates work.
Admin calls need no module access: every staff account may make them, subject to each call’s own permission below. See Authentication.
Admin calls
Section titled “Admin calls”get_pairs
Section titled “get_pairs”POST /api/admin/page/get_pairs
Lists the page templates of the active client theme and of the page module.
No parameters.
Returns: An object: template name => a title made from the name, such as "mod_page_login": "Mod Page Login".
Example
Request parameters:
{}result:
{ "mod_page_login": "Mod Page Login", "mod_page_sitemap": "Mod Page Sitemap"}
