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
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
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
Good point.
On 7/6/07, Christophe David [EMAIL PROTECTED] wrote:
I would like to set 'Country' in config.php.
[...]
$PCache['Group.Page'][=p_Country] = 'Transylvania';
should work, but it does not.
Try
$FmtPV['$Country'] = 'Transylvania';
which will cause {$Country} in wikitext to display as