Home PageFacebook pageAbout Our ChurchSunday ServicesActivitiesInfo
|
This page is being updated to reflect the new layout scheme used in pmwiki versions 0.6.1 and later. Versions of Pm Wiki prior to 0.6.0 may want to look here.
This page describes how a Wiki Administrator can customize the layout (headers and footers) that appear on PmWiki pages. As of PmWiki 0.6.1, the layout is usually controlled by a "template file" stored in the pub/skins/ directory. PmWiki is distributed with a default "pmwiki" skin template file in pub/skins/pmwiki/pmwiki.tmpl. To customize the layout, you simply create a new template file and then add a line such as to your local/config.php file. See Cookbook:Skins for template files and layout designs that others have contributed.
Creating or modifying a templateTo customize a layout, you can either create a new template file from scratch, or you can modify an existing template file. If you want to use one of the files that came with PmWiki as your starting point, you should make a copy of the file and work from the copy instead of editing the original, or your modifications may be lost when upgrading PmWiki. Don't forget to set the value of A template file is basically an HTML file that also contains variable substitutions (indicated by '$') and special directives embedded in HTML comments. Two of these special directives are required in the template file. The directive Throughout the layout template, variables such as $PageUrl, $Titlespaced - the title of the page with spaces between words
$Groupspaced - the group of the page with spaces between words
Finally, the template can contain other directives to output the contents of other pages, files on disk, or to call other PHP functions. The directive << Local Customizations | PmWiki.Documentation Index | Layout Advanced >> |
|
Page last modified on April 03, 2004, at 04:54 PM
|
|