A followup question
Are the possible values for $_REQUEST documented?
I want to only preview if I click Save and Edit, I don't want a preview
when I click Edit
I'm assuming I need to do something like
if ($_REQUEST['saveandedit']) {
$_REQUEST['preview'] = 1; # preview page on Save and Edit
}
thanks very much
Simon
____
http://kiwiwiki.nz
On Tue, 9 Jun 2020 at 08:02, Petko Yotov <[email protected]> wrote:
> This in config.php:
>
> $_REQUEST['preview'] = 1;
>
> Note that it always says "Page is unsaved" even when you have pressed
> "save and edit". That phrase is in Site.EditForm inside a (:if
> e_preview:) conditional, which only checks if a preview is requested,
> not if the page was saved.
>
> Petko
>
> On 08/06/2020 21:46, Simon wrote:
> > Once upon a time I saw some advice on how, when I click save and edit,
> > I
> > also get a preview without specifically having to click preview as
> > well.
> >
> > I can't re-locate it, so I'm hoping someone can tell me how to get a
> > preview when I click save and edit
>
_______________________________________________
pmwiki-users mailing list
[email protected]
http://www.pmichaud.com/mailman/listinfo/pmwiki-users