<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">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.<div><br></div><div>Add to config.php:</div><div><br></div><div><div>$Conditions['saveandedit'] = 'SaveAndEdit()';</div><div>function SaveAndEdit()</div><div>{</div><div>return (@$_REQUEST['postedit']&gt;'');</div><div>}</div><div><br></div><div>Then put the new conditional around the line in Site.EditForm:</div><div><br></div><div><span class="Apple-style-span" style="font-family: 'Lucida Grande'; font-size: 13px; white-space: pre-wrap; ">(:if1 !saveandedit:) '''$[Page is unsaved]''' (:if1end:)</span></div></div><div><br></div><div>Randy</div><div><br></div><div><br><div><div>On Feb 6, 2010, at 3:27 PM, Simon wrote:</div><blockquote type="cite"><font class="Apple-style-span" color="#000000"><br></font><div>I'd also like to see your condition (:if saveadnedit:) added for use in pages</div></blockquote></div><br></div></body></html>