[Pmwiki-users] Re: pmwiki 2.0 pre-populated page question

Bryant Durrell durrell
Wed Dec 29 15:08:54 CST 2004


On Wed, Dec 29, 2004 at 04:18:45PM -0500, Bryant Durrell wrote:
> Worked like a charm; thanks!

Or maybe:

$SessionTemplatePage = '$Group.SessionTemplate';
if ($action=='edit') {
        if (strpos($pagename,'Session')) {
                $existpage = ReadPage($pagename);
                if (! $existpage['text']) {
                        $formpage = ReadPage(FmtPageName('$Group.SessionTemplate
',$pagename));
                        $DefaultPageTextFmt = $formpage['text'];
                        $_POST['text'] = $formpage['text'];
                }
        }
}

-- 
        Bryant Durrell [] http://www.innocence.com/~durrell [] 9/11/2001
 [----------------------------------------------------------------------------]
     "However, never daunted, I will cope with adversity in my traditional
                 manner...sulking and nausea."  -- Tom K. Ryan



More information about the pmwiki-users mailing list