/*
    StaticPageOutput.php
    Copyright 2007 MarkS
*/

To install add the following to your pmwiki/local/config.php

include_once("$FarmD/cookbook/StaticPageOutput.php");
include_once("$FarmD/cookbook/RelativeURLs.php");


See http://www.pmwiki.org/wiki/Cookbook/StaticPages for more information.


# 2.0.0
# RelativeURLs.php
    * Responsible for allowing relative URLs. [[./path/relative.html]] 
# StaticPageOutput.php
    * Responsible for the Static Page functionality. 
# StaticPageGenerator.php
    * The output page when the http://localhost/pmwiki/pmwiki.php?action=StaticPageGenerator action is called. 

Installation

    * 2.0.0
    * Download Attach:StaticPages-2.0.0.zip Δ and extract it to your cookbook directory.
    * Updating your config.php
          o Required: Add the following to your pmwiki/local/config.php
                + include_once("$FarmD/cookbook/StaticPageOutput.php");
                + include_once("$FarmD/cookbook/RelativeURLs.php"); 
          o Required: An admin password for pmwiki will need to be set to access the StaticPageGenerator action page
                + $DefaultPasswords['admin'] = crypt("test"); 
          o Optional: Define your Static Page output location
                + $StaticPageDir = "pub/web"; (Default) 
          o Optional: Define your wiki location from your Static Page output location
                + $StaticPageDirToWikiDir= "./../.."; (Default) 
          o Optional: Set the pmwiki action name (http://localhost/pmwiki/pmwiki.php?action=StaticPageGenerator) to show the StaticPageGenerator page
                + $StaticPageGeneratorActionName = "StaticPageGenerator"; (Default) 
          o Optional: When a wiki page is saved, does it update the corresponding static page.
                + $StaticPageUpdateOnEditSaveAction = TRUE; (Default) 
          o Optional: When a dymanic wiki page is shown, this will automatically generate all static links associated.
                + $StaticPageAutomaticCreation = TRUE; (Default) 
          o Optional: The file naming format for the static page files produced.
                + $FmtPV['$staticPageName'] = '"$group.$name.html"' (Default) 
          o Optional: Not all operating systems support UTF-8 file names.
                + $ServerFileSystemEncoding = "UTF-8"; (Default)
                + $ServerFileSystemEncoding = "WINDOWS-1252"; (For $_ENV['OS'] contains Windows ) 
          o Optional: Exclude Wiki Pages that you do not wish to have static pages generated for.
                + $StaticPageRegularExpressionExclude = array(); (Default)
                + $StaticPageRegularExpressionExclude = array("/Main\.H.*/", "Main.WikiSandbox");
                + $StaticPageRegularExpressionExclude = array("/Main\.*/"); (Exclude all pages in the Main Group) 
          o Optional: List of additional pages to be built when you save a page.
                + $StaticPageSaveActionPageList = array(); (Default)
                + $StaticPageSaveActionPageList = array("Main.RecentChanges");
                + $StaticPageSaveActionPageList = array("Main.HomePage", "Group.RecentChanges"); (The Group keyword will be replaced with the group of the page being saved.) 
                


   