xowiki::includelet::toc instproc render_yui_list (private)

 <instance of xowiki::includelet::toc[i]> render_yui_list \
    [ -full full ] pages

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

Render the table of contents with the YUI tree widget.

Switches:
-full (optional, defaults to "false")
Whether to include the full tree.
Parameters:
pages (required)
Pages to render.

Testcases:
includelet_toc
Source code:
:get_parameters

#
# Render the tree with the yui widget (with or without ajax)
#
if {$book_mode} {
  #:log "--warn: cannot use bookmode with ajax, resetting ajax"
  set ajax 0
}
set :ajax $ajax

if {$ajax} {
  set :js [:yui_ajax]
} else {
  set :js [:yui_non_ajax]
}

set tree [::xowiki::Tree new -id [:id] -destroy_on_cleanup]
$tree array set open_node [array get :open_node]
$tree add_pages -full $full -remove_levels $remove_levels  -book_mode $book_mode -open_page $open_page -expand_all $expand_all  -owner [self]  $pages

set HTML [$tree render -style yuitree -js ${:js}]
return $HTML
XQL Not present:
Generic, PostgreSQL, Oracle
[ hide source ] | [ make this the default ]
Show another procedure: