[pmwiki-users] A save-and-view button

Randy Brown randy at brownragfilms.com
Sat Feb 6 18:03:38 CST 2010


I'm not sure where this should go in the wiki's documentation. However, I have tried the code, and so far no problems. If you know where to post it, please do.

Add to config.php:

$Conditions['saveandedit'] = 'SaveAndEdit()';
function SaveAndEdit()
{
return (@$_REQUEST['postedit']>'');
}

Then put the new conditional around the line in Site.EditForm:

(:if1 !saveandedit:) '''$[Page is unsaved]''' (:if1end:)

Randy


On Feb 6, 2010, at 3:27 PM, Simon wrote:
> 
> I'd also like to see your condition (:if saveadnedit:) added for use in pages

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.pmichaud.com/pipermail/pmwiki-users/attachments/20100206/41fc70c1/attachment-0001.html 


More information about the pmwiki-users mailing list