[Pmwiki-users] [PATCH] Allow setting of BasicLayoutVars in local/group/page config

Patrick R. Michaud pmichaud
Mon Jun 21 08:04:23 CDT 2004


On Mon, Jun 21, 2004 at 09:37:19AM -0400, Ari Pollak wrote:
> >tlayout.php doesn't check if variables are previously set because this 
> >would
> >make it difficult to use the template to set variables that *are* already
> >set, such as $PageEditFmt.  Yes, there are sites that use the templates in
> >this way.
>
> How come $PageEditFmt gets set even though it just gets overwritten later?

1.  Although a template MAY set a value for $PageEditFmt, it's certainly 
not required to do so (indeed most sites use the default).  So, PmWiki
sets a value for $PageEditFmt in case the template doesn't.

2.  I've always written the pmwiki.php code from the perspective that it
should be able to function reasonably well as a wiki even if none of 
the external scripts are loaded or available.  Thus there needs to be
a setting for $PageEditFmt even if templates aren't being used.

Pm



More information about the pmwiki-users mailing list