%3 ::xowiki::Includelet ::xowiki::Includelet → html_encode ::xo::Context ::xo::Context exists_query_parameter export_vars get_parameters original_url_and_query process_query_parameter ::xowiki::Includelet->::xo::Context ::xotcl::Object ::xotcl::Object ::xo::Context->::xotcl::Object ::xowiki::includelet::toc ::xowiki::includelet::toc build_toc initialize render render_list render_yui_list ::xowiki::includelet::toc->::xowiki::Includelet ::xowiki::includelet::PageReorderSupport ::xowiki::includelet::PageReorderSupport ::xowiki::includelet::toc->::xowiki::includelet::PageReorderSupport

Class ::xowiki::includelet::toc

::xowiki::includelet::toc[i] create ... \
           [ -__decoration (default "plain") ] \
           [ -id id ] \
           [ -parameter_declaration (default " {-style ""} {-renderer ""} {-open_page ""} {-book_mode false} {-folder_mode false} {-ajax false} {-expand_all false} {-remove_levels 0} {-category_id} {-locale ""} {-orderby ""} {-source ""} {-range ""} {-allow_reorder ""} {-include_in_foldertree "true"} {-CSSclass_top_ul ""} {-CSSclass_ul ""} ") ]

Show table of contents of the current wiki. The "toc" includelet renders the page titles of the current files based on the value of the "page_order" attributes. Only those pages are rendered that have a nonempty "page_order" field.
Documented Parameters:
style
renderer
open_page
folder_mode
ajax
expand_all
remove_levels
category_id
locale
orderby
by default, sorting is done via page_order (and requires pages with page_order). Alternatively, one can use e.g. "title,asc".
source
range
allow_reorder
include_in_foldertree
CSSclass_top_ul
CSS class for top-level UL element
CSSclass_ul
CSS class for all UL elements
Defined in packages/xowiki/tcl/includelet-procs.tcl

Class Relations

  • class: ::xowiki::IncludeletClass[i]
  • superclass: ::xowiki::Includelet[i]
  • instmixin: ::xowiki::includelet::PageReorderSupport[i]

Methods (to be applied on instances)

  • build_toc (scripted)

     <instance of xowiki::includelet::toc[i]> build_toc

    Partial Call Graph (max 5 caller/called nodes):
    %3 test_includelet_toc includelet_toc (test ) xowiki::includelet::toc instproc build_toc xowiki::includelet::toc instproc build_toc test_includelet_toc->xowiki::includelet::toc instproc build_toc test_xowiki xowiki (test ) test_xowiki->xowiki::includelet::toc instproc build_toc _ _ (public) xowiki::includelet::toc instproc build_toc->_ ad_decode ad_decode (public) xowiki::includelet::toc instproc build_toc->ad_decode

    Testcases:
    includelet_toc, xowiki
  • initialize (scripted)

     <instance of xowiki::includelet::toc[i]> initialize

    Partial Call Graph (max 5 caller/called nodes):
    %3 test_includelet_toc includelet_toc (test ) xowiki::includelet::toc instproc initialize xowiki::includelet::toc instproc initialize test_includelet_toc->xowiki::includelet::toc instproc initialize test_xowiki xowiki (test ) test_xowiki->xowiki::includelet::toc instproc initialize

    Testcases:
    includelet_toc, xowiki
  • render (scripted)

     <instance of xowiki::includelet::toc[i]> render

    Partial Call Graph (max 5 caller/called nodes):
    %3 test_includelet_toc includelet_toc (test ) xowiki::includelet::toc instproc render xowiki::includelet::toc instproc render test_includelet_toc->xowiki::includelet::toc instproc render test_xowiki xowiki (test ) test_xowiki->xowiki::includelet::toc instproc render

    Testcases:
    includelet_toc, xowiki
  • render_list (scripted)

     <instance of xowiki::includelet::toc[i]> render_list

    Partial Call Graph (max 5 caller/called nodes):
    %3 test_includelet_toc includelet_toc (test ) xowiki::includelet::toc instproc render_list xowiki::includelet::toc instproc render_list test_includelet_toc->xowiki::includelet::toc instproc render_list test_xowiki xowiki (test ) test_xowiki->xowiki::includelet::toc instproc render_list

    Testcases:
    includelet_toc, xowiki
  • render_yui_list (scripted)

     <instance of xowiki::includelet::toc[i]> render_yui_list

    Partial Call Graph (max 5 caller/called nodes):
    %3 test_includelet_toc includelet_toc (test ) xowiki::includelet::toc instproc render_yui_list xowiki::includelet::toc instproc render_yui_list test_includelet_toc->xowiki::includelet::toc instproc render_yui_list test_xowiki xowiki (test ) test_xowiki->xowiki::includelet::toc instproc render_yui_list

    Testcases:
    includelet_toc, xowiki