Add-ons / Apps
Change log
- 1.0 - Initial release
Create new site pages based on a template. You can specify the locations new pages can be created in, and whether Editors may delete pages once created.
Installation
- Unzip the download and copy the
perch_pagesfolder intoperch/apps/. - Create the folder
perch/templates/pagesand add your templates. - On the Settings page, specify the folders new pages can be created in e.g.
/about/bios
The Pages menu item should appear in the Perch web interface.
Preparing your templates
New pages are created from your templates, taking on the same file extension as the template. To make sure your new pages have the right path to Perch in them, it is recommended you use the following include format:
<?php
include($_SERVER['DOCUMENT_ROOT'].'/perch/runtime.php');
?>Otherwise, templates are just regular pages that get copied to a new location in your site.
