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

_______________________________________________
pmwiki-users mailing list
[email protected]
http://www.pmichaud.com/mailman/listinfo/pmwiki-users

Reply via email to