<div dir="ltr">A followup question<div><br></div><div>Are the possible values for $_REQUEST documented?</div><div>I want to only preview if I click Save and Edit, I don't want a preview when I click Edit</div><div><br></div><div>I'm assuming I need to do something like</div><div>if ($_REQUEST['saveandedit']) {<br> $_REQUEST['preview'] = 1; # preview page on Save and Edit<br></div><div>}</div><div><br></div><div>thanks very much</div><div><br></div><div>Simon<br clear="all"><div><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div>____<br><a href="http://kiwiwiki.nz" target="_blank"><font size="1">http://kiwiwiki.nz</font></a></div></div></div></div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, 9 Jun 2020 at 08:02, Petko Yotov <<a href="mailto:5ko@5ko.fr">5ko@5ko.fr</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">This in config.php:<br>
<br>
$_REQUEST['preview'] = 1;<br>
<br>
Note that it always says "Page is unsaved" even when you have pressed <br>
"save and edit". That phrase is in Site.EditForm inside a (:if <br>
e_preview:) conditional, which only checks if a preview is requested, <br>
not if the page was saved.<br>
<br>
Petko<br>
<br>
On 08/06/2020 21:46, Simon wrote:<br>
> Once upon a time I saw some advice on how, when I click save and edit, <br>
> I<br>
> also get a preview without specifically having to click preview as <br>
> well.<br>
> <br>
> I can't re-locate it, so I'm hoping someone can tell me how to get a<br>
> preview when I click save and edit<br>
</blockquote></div>