From Jazilla

PmWiki: EditVariables

<< LinkVariables | PmWiki.Variables | UploadVariables >>

$EnableGUIButtons
When set to '1', turns on the graphical buttons in the "Edit Page" form.
       # turn on graphical edit buttons
       $EnableGUIButtons = 1;

$EnablePostAuthorRequired
When set to '1', posting of pages requires the author to provide an author name (see AuthorTracking). Otherwise, authors can post without a name.
       # require authors to provide a name
       $EnablePostAuthorRequired = 1; 

$DeleteKeyPattern
The pattern used to determine if a page should be deleted. The default is to remove pages that contain only the single word "delete" (and optional spaces).
       # change delete word to "remove"
       $DeleteKeyPattern = "^\\s*remove\\s*$";
       # delete any page with no visible text, i.e., empty
       $DeleteKeyPattern = "^\\s*$";

$DefaultPageTextFmt
The text that should be displayed when editing or browsing non-existent pages.
       $DefaultPageTextFmt = 'Page $Name does not exist';

$EditFunctions
This array contains all the function names that are called when you edit a page (in the same order). It could be used to perform some additional or own functions just by adding another (own) function name. Standard setting is (see pmwiki.php):
       $EditFunctions = array('RestorePage','ReplaceOnSave','SaveAttributes',
  'PostPage','PostRecentChanges','PreviewPage'); 

$ROSPatterns
With this array you can give a pattern as key and a text which should replace it when saving an edited text. The following example replaces every occurence of [[test:sometext with [[special:--sometext when you save an edited page.
       # Replace text on Save (add pattern and replacement to array $ROSPatterns)
       $ROSPatterns["/\\[\\[test:([^\\s$UrlExcludeChars]*)/"] = "[[special:--\$1";

$IsPagePosted

$PageEditFmt

$PagePreviewFmt

$HandleEditFmt

Retrieved from http://jazilla.sourceforge.net/pmwiki.php?n=PmWiki.EditVariables
Page last modified on January 11, 2005, at 02:26 AM

PmWiki can't process your request

Cannot acquire lockfile

We are sorry for any inconvenience.