[pmwiki-users] Edit with Preview
Mike
mike at widowitz.com
Mon Dec 4 09:25:44 CST 2006
Cool, I used that advice by adding
if ($action == 'editpreview') {
$action="edit";
$_POST['preview'] = 1;
}
to config.php and then editing PageActions to give another link
"editpreview"...
Thanks!
Mike
Dominique Faure wrote on 04.12.2006 16:04:
> > On 12/4/06, Mike <mike at widowitz.com> wrote:
>> >> Hello,
>> >> for a very specific reason, I'd like to add a button "Edit with
Preview"
>> >> to the action items (View, Edit, Print) of my PmWiki. I.e., I want the
>> >> result of clicking "Edit" and then "Preview" with just one click. Is
>> >> there any way to achieve that?
>> >>
> >
> > just add:
> >
> > if ($action == 'edit') $_POST['preview'] = 1;
> >
> > in your config.php.
> >
> > Dom
> >
More information about the pmwiki-users
mailing list