[Pmwiki-users] Re: Re: Re: pmwiki-0.6.21 released with experimental WikiFarm support

Patrick R. Michaud pmichaud
Wed Jun 2 14:19:40 CDT 2004


On Wed, Jun 02, 2004 at 10:04:43PM +0200, Christian Ridderstr?m wrote:
> 
> Is there a way to document the variables from inside the code?

# get the variables already defined in other pages
VarIndexLoad();         
# Add my own variables to the mix
$VarIndex['MyVariable']['page'] = 'Cookbook.MyRecipe';
$VarIndex['MyVariable']['url'] = 
  'http://somewhere/wiki/Cookbook/MyRecipe#MyVariable';

Starting with pmwiki-0.6.22 I'll get rid of the VarIndexLoad() step,
as it's the function that scans all of the variable documentation
pages (and takes time), and you probably don't want to call it
every time the Cookbook module is loaded.  Currently it's only called
when a page contains something that looks like $VariableName (i.e.,
'$' followed by a WikiWord).

Pm



More information about the pmwiki-users mailing list