[pmwiki-users] SDV?

Hans design at softflow.co.uk
Sat Apr 1 14:29:08 CST 2006


Saturday, April 1, 2006, 8:50:28 PM, Chris wrote:
> Back in the day (a few months ago), I would set a variable in PmWiki
> in a config file directly:
> $Skin = 'alalike';

> Now it seems I am supposed to do something like:
> SDV($Skin, 'alalike');

Not really. It is best to set variables in config.php or other local
customisation files directly, like $Skin = 'pmwiki';
Only in cookbook recipes or skins it is recommended to set some
variables with SDV or SDVA (for arrays), so they can be overridden
with a setting in config.php, before the recipe is included.

SDV stands for Set Default Value, and it sets the variables value, if
it has not been set already beforehand.


Best,
 Hans                           





More information about the pmwiki-users mailing list