[Pmwiki-users] Greating Template Pages for Groups ($DefaultPageTextFmt)
Patrick R. Michaud
pmichaud
Wed Feb 18 15:56:20 CST 2004
[[append:Cookbook.DefaultEditTemplates]] <-- coming soon
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'];
}
[[append:]]
Pm
More information about the pmwiki-users
mailing list