[pmwiki-users] Explanation for FmtPageName or $FmtV/

Patrick R. Michaud pmichaud at pobox.com
Mon Jun 20 16:20:04 CDT 2005


On Sun, May 29, 2005 at 08:48:48PM +0200, chr at home.se wrote:
> I'm thinking of enabling using a conditional markup like this
> 	(:if meta-group LyX:) ... (:ifend:)
> using something like
> 	$Conditions['group'] = 
> 	    "FmtPageName('\$MetaGroup',\$pagename)==\$condparm";
> but the problem is that I don't know how to make FmtPageName() become 
> aware of the contents of the variable $MetaGroup that I create in 
> local/config.php.

FmtPageName() is automatically aware of any global variables that
are created.  If the variable's value changes frequently during the
execution of a program, then you probably want to use $FmtV instead.

Pm



More information about the pmwiki-users mailing list