[Pmwiki-users] Wikistyles in config.php / pmwiki v2

Patrick R. Michaud pmichaud
Wed Nov 3 07:52:54 CST 2004


On Wed, Nov 03, 2004 at 01:06:05PM +0100, Knut Alboldt wrote:
> just a short question:
> 
> if I want to supply predefined wiki-styles (eg: %projectentry color:red%), 
> how can I define it within a config-file like config.php (it works ok when 
> I define it within the page) ?

If you're wanting to do the same as %define=projectentry color:red% ,
use

   $WikiStyle['projectentry']['color'] = 'red';

If you're wanting to define a new style to be the same as
%projectentry color=red%, use

   $WikiStyle['mynewstyle']['class'] = 'projectentry';
   $WikiStyle['mynewstyle']['color'] = 'red';

Pm



More information about the pmwiki-users mailing list