xowiki::Page instproc www-list (public)
<instance of xowiki::Page> www-list
Defined in /var/www/openacs.org/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.
- 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