xowiki::Page instproc www-list (public)

 <instance of xowiki::Page[i]> www-list

Defined in packages/xowiki/tcl/xowiki-www-procs.tcl

This web-callable method provides a listing of pages. When the query parameter "children" is used, it returns the children of this item via the "child-resources" includelet. Otherwise, when this method is called on any kind of Form, it returns the form instances via the "form-usages" includelet. Otherwise, when this method is called on any kind of folder pages, it returns the elements of this folder via the "child-resources" includelet. If the above fails, it redirects to the starting page.

Partial Call Graph (max 5 caller/called nodes):
%3 ad_return_url ad_return_url (public) xowiki::Page instproc www-list xowiki::Page instproc www-list xowiki::Page instproc www-list->ad_return_url

Testcases:
No testcase defined.
Source code:
if {[:is_form] && ![:exists_query_parameter children]} {
  #
  # The following line is here to provide a short description for
  # larger form-usages (a few MB) where otherwise
  # "ad_html_text_convert" in Page.get_description tend to use
  # forever (at least in Tcl 8.5)
  #
  set :description "form-usages for ${:name} ${:title}"

  return [:www-view [:include [list form-usages -form_item_id ${:item_id}]]]
}
if {[:is_folder_page] || [:exists_query_parameter children]} {
  return [:www-view [:include [list child-resources -publish_status all]]]
}
#:msg "method list undefined for this kind of object"
${:package_id} returnredirect [ad_return_url]
XQL Not present:
Generic, PostgreSQL, Oracle
[ hide source ] | [ make this the default ]
Show another procedure: