Add-ons / Apps

  • Type: App
  • Compatibility: Perch 1.5
  • License: Free
  • Developer: Perch

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

  1. Unzip the download and copy the perch_pages folder into perch/apps/.
  2. Create the folder perch/templates/pages and add your templates.
  3. 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.