[Pmwiki-users] Re: Re: PmWiki.LayoutBasics

chr@home.se chr
Mon Nov 29 03:00:46 CST 2004


On Sun, 28 Nov 2004, Patrick R. Michaud wrote:

> Partially.  A "skin" really encompasses more than a '.tmpl' file, it's
> the .tmpl file along with any associated .css, graphic images, and (as of
> 2.0.beta1) an optional .php configuration file.

How about this:

     A ''skin'' is a local customization the wiki that changes the \
     appearance and/or behaviour of the wiki. This could simply be a \
     matter of choosing different colours, or more advanced such as \
     changing the structure of a wiki page.

     On a more practical level, a skin is defined by files in a 
     ''skin-directory'', e.g. pub/skins/pmwiki/ and is typically selected 
     by having the administrator setting the variable $Skin to the name of 
     the skin directory.

     The files in the skin directory are typically a .tmpl-file and a 
     .css-file, but there may also be image files and .php-scripts.

There should also be a link to somewhere that explains the format of the
template file.

> I can certainly ship some example skins with PmWiki, but perhaps it is 
> better for them to be a separately downloaded module, so that I'm 
> not overpopulating the directories in the distribution?

I think there should be at least one "example" skin (other than the pmwiki
skin). It doesn't have to be very complicated, I think mainly of it as a
foolproof way for the admin to test how to change skins, and also that he
can play with it (without ruining the pmwiki skin).

As you said in another post, that example skin should be heavily
commentend. The pmwiki skin should probably also be heavily commented.

/Christian

-- 
Christian Ridderstr?m, +46-8-768 39 44               http://www.md.kth.se/~chr





More information about the pmwiki-users mailing list