%3 ::xowiki::File ::xowiki::File www-download ::xowiki::Page ::xowiki::Page ::xowiki::File->::xowiki::Page ::xowiki::PageTemplate ::xowiki::PageTemplate www-delete ::xowiki::PageTemplate->::xowiki::Page ::xowiki::PageInstance ::xowiki::PageInstance get_from_template www-use-template ::xowiki::PageInstance->::xowiki::Page ::xowiki::PlainPage ::xowiki::PlainPage ::xowiki::PlainPage->::xowiki::Page ::xo::db::CrCache::Item ::xo::db::CrCache::Item ::xotcl::Object ::xotcl::Object ::xo::db::CrCache::Item->::xotcl::Object ::xowiki::Form ::xowiki::Form ::xowiki::Form->::xowiki::PageTemplate

Class ::xowiki::PageTemplate

::xowiki::PageTemplate[i] create ... \
           [ -render_adp (default "0") ]

Defined in

Class Relations

  • class: ::xo::db::CrClass[i]
  • superclass: ::xowiki::Page[i]
  • subclass: ::xowiki::Form[i]
::xo::db::CrClass create ::xowiki::PageTemplate \
     -superclass ::xowiki::Page

Methods (to be applied on instances)

  • www-delete (scripted, public)

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

    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.
    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
    }