xowiki::includelet::toc instproc render
<instance of xowiki::includelet::toc> render
Defined in
- Testcases:
-
includelet_toc, xowiki
Source code:
:get_parameters
if {![info exists :id]} {
set :id [::xowiki::Includelet html_id [self]]
}
if {[info exists category_id]} {
set :category_id $category_id
}
set pages [:build_toc $package_id $locale $source $range]
:build_navigation $pages
if {[nsf::is object ::__xowiki__MenuBar] && ${:include_in_foldertree}} {
::__xowiki__MenuBar additional_sub_menu -kind folder -pages $pages -owner [self]
}
if {${:renderer} eq "none"} {
} elseif {${:use_tree_renderer}} {
return [:render_tree -full 1 $pages]
} elseif {${:list_mode}} {
return [:render_list $pages]
} else {
return [:render_yui_list -full true $pages]
}
XQL Not present:Generic, PostgreSQL, Oracle
[
hide source ]
| [
make this the default ]