[pmwiki-users] Set a PageTextVariable from config.php

Kathryn Andersen kat_lists at katspace.homelinux.org
Fri Jul 6 14:39:11 CDT 2007


On Fri, Jul 06, 2007 at 03:05:51PM +0200, Christophe David wrote:
> Instead of defining a Pagetextvariable as
> 
> (:Country: Transylvania :)
> 
> to retrieve it in a page with
> 
> "{$:Country}" ,
> 
> I would like to set 'Country' in config.php.
> 
> >From pmwiki.php (PageTextVar function), I guess something like
> 
> $PCache['Group.Page']["=p_Country"] = 'Transylvania';
> 
> should work, but it does not.

Why do you want to do this?  Page Text Variables are not designed to be
set from config.php.

If you want to create a variable in config.php, then you should use the
thing that was designed to do so -- that is, Page Variables.
See http://www.pmwiki.org/wiki/PmWiki/PageVariables

Kathryn Andersen
-- 
 _--_|\     | Kathryn Andersen	<http://www.katspace.com>
/      \    | 
\_.--.*/    | GenFicCrit mailing list <http://www.katspace.com/gen_fic_crit/>
      v     | 
------------| Melbourne -> Victoria -> Australia -> Southern Hemisphere
Maranatha!  |	-> Earth -> Sol -> Milky Way Galaxy -> Universe



More information about the pmwiki-users mailing list