[Pmwiki-users] PmWiki.LayoutBasics
Patrick R. Michaud
pmichaud
Fri Nov 26 15:57:34 CST 2004
In writing the documentation, the one page that probably needs a lot of
work is the one that describes the basics of creating/customizing skins
(http://www.pmwiki.org/wiki/PmWiki/LayoutBasics). If there are any people
out there who could identify ways in which this could be made clearer
I would really appreciate it.
The basics:
- The skin to be used is controlled by the $Skin variable, which names
a directory in pub/skins.
- Inside of that directory there should be a '.tmpl' file. If there is
only one .tmpl file, it is used, otherwise PmWiki uses the .tmpl file
with the same name as the skin, the file 'skin.tmpl', or else it throws
an error.
The somewhat more than basics:
- The variable $SkinDirUrl is set to the url of the skin's directory, thus
graphic images and CSS files can be referred to as $SkinDirUrl/something.css.
- If there's a file called '$Skin.php' or 'skin.php' in the skin directory,
it's loaded before any template files are loaded. The .php file can also
request a specific template file to be loaded by calling LoadPageTemplate().
Pm
More information about the pmwiki-users
mailing list