[pmwiki-users] A save-and-view button
5ko at 5ko.fr
Sat Feb 6 02:17:11 CST 2010
On Saturday 06 February 2010 08:22:08, Simon wrote :
> On 5 February 2010 23:32, Petko Yotov <5ko at 5ko.fr> wrote:
> > On Friday 05 February 2010 04:46:53, Randy Brown wrote :
> > > I would find it useful to have a button on my edit form that is similar
> > to
> > > save-and-edit, except it would also show a preview (maybe called a
> > "view"
> > > since it's not "pre" to anything). Is there a simple way to do that?
> > You can always display a preview below the edit form (works with edit and
> > with
> > save&edit) by adding to config.php :
> > if($action == 'edit') $_REQUEST['preview'] = 1;
> This sounds great, can we have a preview just when 'save and edit' is used
> rather than edit?
Yes, instead of the line above, use this one:
if(@$_REQUEST['postedit']>'') $_REQUEST['preview'] = 1;
More information about the pmwiki-users