DefaultEditTemplates

<< | Cookbook-V1 | >>

Note: The recipes here are for PmWiki versions 0.6 and 1.0 only. For PmWiki 2.0 recipes, see Cookbook.


Describe DefaultEditTemplates here.


added 02/18/04 at 21:42...
 

On Thu, Feb 19, 2004 at 09:48:51AM +1100, Richard Canning wrote:
>
> I have been playing with trying to create a simple script that will
> allow me to load an external file to replace $DefaultPageTextFmt
> to be something else.
>
> What I am wondering is if there is a way of setting a page and
> having the script return the source code of the specifited page.

if ($action=='edit' && PageExists(FmtPageName('$Group.Template',$pagename))) {
$page = ReadPage(FmtPageName('$Group.Template',$pagename));
$DefaultPageTextFmt = $page['text'];
}


pmwiki-2.3.32 -- Last modified by {{}}?

from IP: 85.171.160.186 ip should be disabled by default for security reasons