EditierVariablen

<< Verweis Variablen | Variablen | Upload Variablen >>

noch zu übersetzen

$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
$EnablePostAuthorRequired

With this variable set to "1" posting an edit of a page is only possible when an author is given. Default setting is "0".