|
Parameters | Accepted Values | Description | Default | Since |
---|---|---|---|---|
maxdepth |
digits | Set the number of levels to display. 0 means only 1 level will be displayed and empty mean no limit (and is the default). |
0 | 3.0 |
mindepth |
digits | Set the level starting from which page names are displayed. 0 or empty (the default) means from level 1. Starting from 0 (and not 1). |
0 | 15.3. |
order |
(blank) asc desc |
Order items in ascending or descending order (default is ascending). | asc | 3.0 |
pagename |
pagename | By default, the table of contents for the current page will be displayed. Alternate page may be provided. | 5.0 | |
showdesc |
(blank) 1 0 |
Display the page description in front of the page name | 0 | 3.0 |
shownum |
(blank) 1 0 |
Display the section numbers or not | 0 | 3.0 |
sortalpha |
(blank) struct alpha |
Order for the first Level of pages that will be displayed. Order by structure is the default. | struct | 15.3. |
structId |
digits | By default, structure for the current page will be displayed. Alternate structure may be provided. | 3.0 | |
type |
(blank) plain fancy admin |
Style to apply | plain | 3.0 |
Navigating to a page that is included in multiple structures can cause a PluginToc used on that page to behave unexpectedly. In these cases the structId
parameter should be used to set behavior.
For example, assume we have one structure called "Full" and one called "Shell" and we have a page called "Examples" that is included in both. In the Full structure, the Examples page has three pages under it called "Example 1", "Example 2" and "Example 3", whereas in the Shell structure there are no pages under the Examples page.
If you want the three example pages to show in PluginToc every time the Examples page is brought up, then the structId
parameter should be set to be the page_ref_id
of the Examples page in the Full structure. To determine what this page_ref_id
is, do the following:
tiki-admin_structures.php
page_ref_id
that is part of the URL when you mouse over the page name
structId
parameter in PluginToc to equal the page_ref_id
noted
Now PluginToc on the Examples page will show the three pages underneath it in the Full structure.
pagename
parameterPassing the pagename
is useful in (at least) two situations:
This code:
{toc structId="4020" shownum="1"}
Would produce on this site:
pagename
parameter in the above example is the root page of a structure. This code:
{toc structId="4020" sortalpha="alpha" mindepth="1"}
Would produce on this site:
This code:
{toc structId="4020" sortalpha="struct" mindepth="1"}
Would produce on this site:
This code:
{toc pagename="Author Resources" sortalpha="alpha" mindepth="1" maxdepth="1"}
Would produce on this site:
This code:
{toc showdesc="1" pagename="Author Resources"}
Would produce on the main page of a structure (using the All the Documentation page in this example):
Note that in this example, the description is shown first and the title field shown second. If a page has no description field (like in many pages of the structure in this example), only this title will be shown.