[pmwiki-users] $DefaultPage doesn't show up in $FmtPV by default?

Petko Yotov 5ko at 5ko.fr
Tue Dec 18 04:48:52 CST 2012


tamouse mailing lists writes:
> $DefaultPage is not in $FmtPV. Is this a bug? Or is this intentional?

Neither one. All PHP variables are not automatically visible in the $FmtPV  
array, only those which we needed for some reason.

You can enable a page variable {$DefaultPage} by adding in config.php:

  $FmtPV['$DefaultPage'] = '$GLOBALS["DefaultPage"]';

See also http://www.pmwiki.org/wiki/Cookbook/MoreCustomPageVariables if you  
need to define other page variables.

Petko




More information about the pmwiki-users mailing list