On Saturday 06 February 2010 08:22:08, Simon wrote : > On 5 February 2010 23:32, Petko Yotov <[email protected]> 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; Petko _______________________________________________ pmwiki-users mailing list [email protected] http://www.pmichaud.com/mailman/listinfo/pmwiki-users
