[pmwiki-users] Re: Hardcodeds and Questions . . .

christian.ridderstrom at gmail.com christian.ridderstrom at gmail.com
Fri Dec 30 15:51:04 CST 2005


On Fri, 30 Dec 2005, Patrick R. Michaud wrote:

> On Fri, Dec 30, 2005 at 12:46:35PM -0600, Ben Wilson wrote:
> > Right. I forgot the ordering. First Pmwiki sets, then local resets.
> 
> More completely,
> 
> 1. PmWiki sets some variables.
> 2. Local configs and recipes can set new variables or reset 
>    existing ones.
> 3. PmWiki scripts set more variables based on the local configs, but 
>    only sets those variables that haven't already been set by a local
>    config.  (This is the purpose of the SDV() function found in many
>    scripts and recipes.)

This sounds like a good snippet to add to the documentation.. any idea 
where?

Actually, perhaps it'd be a good idea to document the order in which
pmwiki pulls in files as well? Patrick, maybe you could fill in the blanks
and correct errors below...

1. PmWiki sets variables such as ... ($PmWikiVersion??)

2. Local configuration files are loaded in the following order (assuming 
   they exist)
	local/config.php
	(alternative config files???)
	<$Group>.php
	<$Name>.php
   This allows the local configuration files to set new variables, 
   or reset/modify existing variables.

3. PmWiki scripts set more variables based on the local configs, but 
   only sets those variables that haven't already been set by a local
   config.  (This is the purpose of the SDV() function found in many
   scripts and recipes.)

4. Scripts are included from scripts/, depending on what functions have
   been enabled. Note that only scripts which haven't previously been 
   included are actually included in this step.

cheers
/Christian

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






More information about the pmwiki-users mailing list