[pmwiki-devel] PostPage in recipe
Hans
design5 at softflow.co.uk
Sun Mar 29 11:49:56 CDT 2009
Sunday, March 29, 2009, 5:07:10 PM, Frank wrote:
> What's wrong with:
> $old = RetrieveAuthPage('Test.Page1', 'read');
> if ($old) {
> $new = $old;
> $new['text'] = "x".$old['text'];
> $pn='Test.Page1';
> UpdatePage($pn,$old,$new);
> }
I does look okay to me.
Perhaps you need to call HandleBrowse or HandleDispatch
to see the page after the update.
HandleDispatch() can load a page with varous actions supplied, and
also any message for display via (:messages:) markup:
HandleDispatch($pn,'browse',$msg);
HandleBrowse($pn) will just display the page.
Hans
More information about the pmwiki-devel
mailing list