xowiki::PageTemplate instproc www-delete (public)

 <instance of xowiki::PageTemplate[i]> www-delete \
    [ -return_url return_url ]

Defined in /var/www/openacs.org/packages/xowiki/tcl/xowiki-www-procs.tcl

This web-callable method deletes a page via the delete method of the package. This method checks first, if there exists still instances of this page (depending on it).

Switches:
-return_url (optional)

Testcases:
No testcase defined.
Source code:
set count [:count_usages -publish_status all]
#:msg count=$count
if {$count > 0} {
  append error_msg  [_ xowiki.error-delete_entries_first [list count $count]]  <p>  [:include [list form-usages -publish_status all -parent_id * -form_item_id ${:item_id}]]  </p>
  ${:package_id} error_msg $error_msg
} else {
  next
}
XQL Not present:
Generic, PostgreSQL, Oracle
[ hide source ] | [ make this the default ]
Show another procedure: