%TREEBROWSER{
parameters }%
immediately before a bulleted or numbered list. The lists can be handcrafted, generated by another Plugin, a %TOC%
, or the result of a FormattedSearch. The list will be rendered in a tree-like fashion (similar to the explorer folder list). Whenever a new indentation level is started, the subsequent nodes at this or a lower indentation level are shown as descendents of the preceding node. The following parameters can be used to configure the appearance of the tree:
Parameter | Description | Default |
---|---|---|
"name" ortheme="name" | Select a rendering theme | none |
title | Required. This text serves as the root of the tree | none |
openAll | If on , the tree is shown fully expanded. | off |
openTo | Must be an integer. If present, the tree is expanded to the given node, as numbered from the root. | 0 |
shared | Must be a string. If present, the state of the tree is shared across all trees using this string. For example, if the tree is used in the WebLeftBar, the state will hold at all topics with this WebLeftBar. It's basically the name of the JavaScript? object representing your tree. | none |
uselines | Set to false if you don't want to show lines linking nodes and leafs in the tree | true |
useplusminus | Set to false if you don't want to show '-' and '+' signs. One can use something like onclick='javascript: tree.o($index);' in the tree item to trigger opening/closing of a node. | true |
noindent | Set to true to show children at the level their parent. It suppresses children indentation. | false |
nocss | Set to true to prevent inclusion of dtree.css . | false |
closesamelevel | If true only one node within a parent can be expanded at the same time. openAll() and closeAll() functions do not work when this is enabled. | false |
<name>_THEME
Plugin settings Set < name >_THEME = tree
Set < name >_THEME = icon, [< root icon image >], [< icon image >], [< folder icon image >], [< open folder icon image >]
*
bullets
Like this
myicon.gif
, or
%ATTACHURL%/globe.gif
, %ATTACHURL%/home.gif
, %ATTACHURL%/virtualhome.gif
, %ATTACHURL%/group.gif
, %ATTACHURL%/persons.gif
, virtualpersons.gif
, %ATTACHURL%/person.gif
, %ATTACHURL%/virtualperson.gif
, %ATTACHURL%/email.gif
, %ATTACHURL%/trend.gif
, %ATTACHURL%/folder.gif
, %ATTACHURL%/file.gif
, %ATTACHURL%/doc.gif
, %ATTACHURL%/image.gif
, %ATTACHURL%/pdf.gif
, %ATTACHURL%/ppt.gif
, %ATTACHURL%/sound.gif
, %ATTACHURL%/xls.gif
, %ATTACHURL%/zip.gif
, %ATTACHURL%/see.gif
icon:myicon.gif Followed by normal bullet text
%TREEBROWSER{"file" title="[[%HOMETOPIC%][%INCLUDINGWEB% Web Home]]" shared="left"}% * [[WebChanges][Changes]] * [[WebIndex][Index]] * [[WebSearch][Search]] * this is a very very very long text * *Webs* %WEBLIST{" * [[$name.%HOMETOPIC%][$name]]"}%generates
If installed | Simulated |
---|---|
open all | close all |
Webs
will expand the subtree below that node.
To add "collapse/expand all nodes" functionalities do something like:
<a href="javascript: tree.openAll();">open all</a> | <a href="javascript: tree.closeAll();">close all</a> %TREEBROWSER{"file" title="[[%HOMETOPIC%][%INCLUDINGWEB% Web Home]]" shared="tree"}% ...
%<plugin>_<setting>%
, i.e. %TREEBROWSERPLUGIN_SHORTDESCRIPTION%
data/debug.txt
) <SOMETHING>_THEME
and contain a comma delimited list of render type with parameters: TreeBrowserPlugin.zip
in your twiki installation directory. Content: File: | Description: |
---|---|
data/TWiki/TreeBrowserPlugin.txt | Plugin topic |
lib/TWiki/Plugins/TreeBrowserPlugin.pm | Plugin Perl module |
pub/TWiki/TreeBrowserPlugin/dtree.css | part of dtree |
pub/TWiki/TreeBrowserPlugin/dtree.js | part of dtree |
pub/TWiki/TreeBrowserPlugin/base.gif | part of dtree |
pub/TWiki/TreeBrowserPlugin/cd.gif | part of dtree |
pub/TWiki/TreeBrowserPlugin/empty.gif | part of dtree |
pub/TWiki/TreeBrowserPlugin/folder.gif | part of dtree |
pub/TWiki/TreeBrowserPlugin/folderopen.gif | part of dtree |
pub/TWiki/TreeBrowserPlugin/globe.gif | part of dtree |
pub/TWiki/TreeBrowserPlugin/imgfolder.gif | part of dtree |
pub/TWiki/TreeBrowserPlugin/join.gif | part of dtree |
pub/TWiki/TreeBrowserPlugin/joinbottom.gif | part of dtree |
pub/TWiki/TreeBrowserPlugin/line.gif | part of dtree |
pub/TWiki/TreeBrowserPlugin/minus.gif | part of dtree |
pub/TWiki/TreeBrowserPlugin/minusbottom.gif | part of dtree |
pub/TWiki/TreeBrowserPlugin/musicfolder.gif | part of dtree |
pub/TWiki/TreeBrowserPlugin/nolines_minus.gif | part of dtree |
pub/TWiki/TreeBrowserPlugin/nolines_plus.gif | part of dtree |
pub/TWiki/TreeBrowserPlugin/page.gif | part of dtree |
pub/TWiki/TreeBrowserPlugin/plus.gif | part of dtree |
pub/TWiki/TreeBrowserPlugin/plusbottom.gif | part of dtree |
pub/TWiki/TreeBrowserPlugin/question.gif | part of dtree |
pub/TWiki/TreeBrowserPlugin/trash.gif | part of dtree |
pub/TWiki/TreeBrowserPlugin/doc.gif | icons from RenderListPlugin |
pub/TWiki/TreeBrowserPlugin/email.gif | icons from RenderListPlugin |
pub/TWiki/TreeBrowserPlugin/file.gif | icons from RenderListPlugin |
pub/TWiki/TreeBrowserPlugin/group.gif | icons from RenderListPlugin |
pub/TWiki/TreeBrowserPlugin/home.gif | icons from RenderListPlugin |
pub/TWiki/TreeBrowserPlugin/image.gif | icons from RenderListPlugin |
pub/TWiki/TreeBrowserPlugin/pdf.gif | icons from RenderListPlugin |
pub/TWiki/TreeBrowserPlugin/person.gif | icons from RenderListPlugin |
pub/TWiki/TreeBrowserPlugin/persons.gif | icons from RenderListPlugin |
pub/TWiki/TreeBrowserPlugin/ppt.gif | icons from RenderListPlugin |
pub/TWiki/TreeBrowserPlugin/see.gif | icons from RenderListPlugin |
pub/TWiki/TreeBrowserPlugin/sound.gif | icons from RenderListPlugin |
pub/TWiki/TreeBrowserPlugin/trend.gif | icons from RenderListPlugin |
pub/TWiki/TreeBrowserPlugin/virtualhome.gif | icons from RenderListPlugin |
pub/TWiki/TreeBrowserPlugin/virtualperson.gif | icons from RenderListPlugin |
pub/TWiki/TreeBrowserPlugin/virtualpersons.gif | icons from RenderListPlugin |
pub/TWiki/TreeBrowserPlugin/xls.gif | icons from RenderListPlugin |
pub/TWiki/TreeBrowserPlugin/zip.gif | icons from RenderListPlugin |
Plugin Author: | TWiki:Main.ThomasWeigert |
Plugin Version: | v0.7 |
Change History: | |
01 Oct 2006: | (v0.7) - Adding useplusminus , noindent and nocss parameters. By Stéphane Lenclud. |
17 Sep 2006: | (v0.6) - Adding closesamelevel and uselines functionalities, fix rendering issues with Firefox and pattern skin, fix warnings in apache error logs. By Stéphane Lenclud |
12 Apr 2006: | (v0.5) - Minor update for TWiki:Codev.TWikiRelease04x00 |
16 Sep 2005: | (v0.4) - Fix bug in openAll and openTo functions |
06 Sep 2005: | (v0.3) - Adopt the rendering themes from TWiki:Plugins.RenderListPlugin |
05 Sep 2005: | (v0.2) - Support sharing of tree state across topics. If JavaScript is not enabled, render the list in standard fashion. Correct user input error containig a line that is too deeply indented. |
04 Sep 2005: | (v0.1) - Initial version |
TWiki Dependency: | $TWiki::Plugins::VERSION 1.024 |
CPAN Dependencies: | none |
Other Dependencies: | none |
Perl Version: | 5.005, 5.8.7 |
License: | GPL (GNU General Public License) |
TWiki:Plugins/Benchmark: | GoodStyle n%, FormattedSearch n%, TreeBrowserPlugin n% |
Plugin Home: | http://TWiki.org/cgi-bin/view/Plugins/TreeBrowserPlugin |
Feedback: | http://TWiki.org/cgi-bin/view/Plugins/TreeBrowserPluginDev |
Appraisal: | http://TWiki.org/cgi-bin/view/Plugins/TreeBrowserPluginAppraisal |
I | Attachment | Action | Size | Date | Who | Comment |
---|---|---|---|---|---|---|
![]() | base.gif | manage | 1.0 K | 02 Jul 2021 - 16:18 | UnknownUser | |
![]() | cd.gif | manage | 0.2 K | 02 Jul 2021 - 16:18 | UnknownUser | |
![]() | doc.gif | manage | 0.9 K | 02 Jul 2021 - 16:18 | UnknownUser | |
css | dtree.css | manage | 0.8 K | 01 Oct 2021 - 00:47 | StephaneLenclud? | |
css~ | dtree.css~ | manage | 0.8 K | 28 Sep 2021 - 01:14 | UnknownUser | |
js | dtree.js | manage | 12.1 K | 01 Oct 2021 - 00:52 | StephaneLenclud? | |
js~ | dtree.js~ | manage | 12.1 K | 01 Oct 2021 - 00:52 | UnknownUser | |
![]() | email.gif | manage | 0.2 K | 02 Jul 2021 - 16:18 | UnknownUser | |
![]() | empty.gif | manage | 0.1 K | 02 Jul 2021 - 16:18 | UnknownUser | |
![]() | file.gif | manage | 0.1 K | 02 Jul 2021 - 16:18 | UnknownUser | |
![]() | folder.gif | manage | 0.4 K | 02 Jul 2021 - 16:18 | UnknownUser | |
![]() | folderopen.gif | manage | 0.4 K | 02 Jul 2021 - 16:18 | UnknownUser | |
![]() | globe.gif | manage | 1.1 K | 02 Jul 2021 - 16:18 | UnknownUser | |
![]() | group.gif | manage | 0.2 K | 02 Jul 2021 - 16:18 | UnknownUser | |
![]() | home.gif | manage | 0.2 K | 02 Jul 2021 - 16:18 | UnknownUser | |
![]() | image.gif | manage | 0.9 K | 02 Jul 2021 - 16:18 | UnknownUser | |
![]() | imgfolder.gif | manage | 0.6 K | 02 Jul 2021 - 16:18 | UnknownUser | |
![]() | join.gif | manage | 0.1 K | 02 Jul 2021 - 16:18 | UnknownUser | |
![]() | joinbottom.gif | manage | 0.1 K | 02 Jul 2021 - 16:18 | UnknownUser | |
![]() | line.gif | manage | 0.1 K | 02 Jul 2021 - 16:18 | UnknownUser | |
![]() | minus.gif | manage | 0.1 K | 02 Jul 2021 - 16:18 | UnknownUser | |
![]() | minusbottom.gif | manage | 0.1 K | 02 Jul 2021 - 16:18 | UnknownUser | |
![]() | musicfolder.gif | manage | 0.6 K | 02 Jul 2021 - 16:18 | UnknownUser | |
![]() | nolines_minus.gif | manage | 0.8 K | 02 Jul 2021 - 16:18 | UnknownUser | |
![]() | nolines_plus.gif | manage | 0.8 K | 02 Jul 2021 - 16:18 | UnknownUser | |
![]() | page.gif | manage | 0.6 K | 02 Jul 2021 - 16:18 | UnknownUser | |
![]() | pdf.gif | manage | 0.9 K | 02 Jul 2021 - 16:18 | UnknownUser | |
![]() | person.gif | manage | 0.1 K | 02 Jul 2021 - 16:18 | UnknownUser | |
![]() | persons.gif | manage | 0.2 K | 02 Jul 2021 - 16:18 | UnknownUser | |
![]() | plus.gif | manage | 0.1 K | 02 Jul 2021 - 16:18 | UnknownUser | |
![]() | plusbottom.gif | manage | 0.1 K | 02 Jul 2021 - 16:18 | UnknownUser | |
![]() | ppt.gif | manage | 0.9 K | 02 Jul 2021 - 16:18 | UnknownUser | |
![]() | question.gif | manage | 1.0 K | 02 Jul 2021 - 16:18 | UnknownUser | |
![]() | see.gif | manage | 0.1 K | 02 Jul 2021 - 16:18 | UnknownUser | |
![]() | sound.gif | manage | 0.2 K | 02 Jul 2021 - 16:18 | UnknownUser | |
![]() | trash.gif | manage | 1.0 K | 02 Jul 2021 - 16:18 | UnknownUser | |
jpg | tree.jpg | manage | 7.9 K | 02 Jul 2021 - 16:18 | UnknownUser | |
![]() | trend.gif | manage | 0.1 K | 02 Jul 2021 - 16:18 | UnknownUser | |
![]() | virtualhome.gif | manage | 0.2 K | 02 Jul 2021 - 16:18 | UnknownUser | |
![]() | virtualperson.gif | manage | 0.1 K | 02 Jul 2021 - 16:18 | UnknownUser | |
![]() | virtualpersons.gif | manage | 0.2 K | 02 Jul 2021 - 16:18 | UnknownUser | |
![]() | xls.gif | manage | 0.9 K | 02 Jul 2021 - 16:18 | UnknownUser | |
![]() | zip.gif | manage | 0.9 K | 02 Jul 2021 - 16:18 | UnknownUser |