Forum OpenACS Q&A: xowiki pages deleting

Collapse
Posted by Michal Hanckowiak on
Hi,

when someone push the button "Delete" on a xowiki page
then that page is immediately deleted...

is it possible to change something in xowiki params/config
that there will be a question "Are you sure?"
before page is deleted???

................
best regards,
Michal Hanckowiak

Collapse
2: Re: xowiki pages deleting (response to 1)
Posted by Gustaf Neumann on
One can activate a confirm dialog for delete on the admin/list page by removing a comment (search in xowiki/www/admin/list.tcl for "delete_confirm"). The experience says that this does not help much, since people simply click through after some time without reconsidering.

The right solution would be a proper trashcan (and trashcan management), but this needs to be done at the cr-level and is a larger task.

Collapse
3: Re: xowiki pages deleting (response to 2)
Posted by Michal Hanckowiak on
thanks Gustaf,
you are talking about the list of objects in admin panel;
is it also possible to add such a "confirmation dialog"
to a button "Delete" on the top of a xowiki page??
(with url .../mypage?m=delete)
.............
Michal
Collapse
4: Re: xowiki pages deleting (response to 3)
Posted by Gustaf Neumann on
You are probably taking about the "wikicmds". sure is this possible, just edit the template you are using (e.g. view-default.adp) and add the js-snippet from admin/list.tcl.