[Pmwiki-users] question about templates/editing

Patrick R. Michaud pmichaud
Wed Mar 3 16:42:22 CST 2004


On Wed, Mar 03, 2004 at 02:10:32PM -0600, C. Rosas wrote:
> i don't quite understand the template editing.
> 
> i downloaded the latest version of pmwiki and i did what the instructions 
> said, but i don't like the template with the sidebar.  i just want to 
> delete the sidebar, so it will look like "classic skin," so i can pretty 
> much do whatever i want with it.  so how do i either get rid of the 
> sidebar or change the template?  

First, copy the contents of the pub/skins/pmwiki directory to another 
location, such as pub/skins/rosas.  This will be where you will modify
your template.  In your local/config.php file, set

   $PageTemplateFmt = 'pub/skins/rosas/pmwiki.tmpl';

to tell PmWiki to use your modified template instead of PmWiki's default.

To get rid of the sidebar, just edit the pub/skins/rosas/pmwiki.tmpl
file to get rid of the <!--PageLeftFmt--> section and the
<!--PageRightFmt--> section.

You'll probably also want to change the stylesheet reference link at 
the top of the template file to use href="$PubDir/skins/rosas/pmwiki.css".

------

You might also look at the classic skin template files for
how it is done (http://www.pmichaud.com/wiki/Cookbook/ClassicSkin).
I'll try to add some instructions about installing and modifying
skins a bit later.

Pm



More information about the pmwiki-users mailing list