Line: 1 to 1 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Added: | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
> > | Tree Browser Plugin<-- Contributions to this plugin are appreciated. Please update the plugin page at http://twiki.org/cgi-bin/view/Plugins/TreeBrowserPlugin
Acknowledgment
This plugin leverages the dTree
Syntax Rules
Place the tag
Rendering themes can be defined by
If JavaScript is not enabled, the list is rendered as usual, and the
Bullets
CSS classesA number of classes are used to facilitate look and feel customizations through CSS.
Constant classThis class won't change from one tree to the other:
Variable classes
Those classes are prefixed with the
Examples
Basic
%TREEBROWSER{"file" title="[[%HOMETOPIC%][%INCLUDINGWEB% Web Home]]" shared="left"}% * [[WebChanges][Changes]] * [[WebIndex][Index]] * [[WebSearch][Search]] * this is a very very very long text * Folder * Leaf1 * Subfolder * Leaf3 * Leaf2 * *Webs* %WEBLIST{" * [[$name.%HOMETOPIC%][$name]]" }%generates
This tree could be used in the WebLeftBar, for example. Clicking on the plus icon next to 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"}% ...
Menu
|
If installed | Simulated | |
---|---|---|
|
|
nodeactions
example Code
%TREEBROWSER{"thread" noroot="on" shared="memenudemo" noindent="on" style="dmenu" nodeactions="onmouseover open, onclick close"}% * Vegetables * Carot * Leek * Tomato * Potato * Fruits * Banana * Grape fruit * Pink * Yellow * Peach
Code
%TREEBROWSER{"thread" noroot="on" shared="memenudemo" noindent="on" style="dmenu" nodeactions="onmouseover open, onclick close", closesamelevel="on" popup="on" popupoffset="-10,-4" }% * Vegetables * Carot * Leek * Tomato * Potato * Fruits * Banana * Grape fruit * Pink * Yellow * Peach
Simulated
Code
%TREEBROWSER{"thread" noroot="on" shared="opacitynotabledemo" noindent="on" style="smenu" nodeactions="onmouseover open, onclick close" popup="on" closesamelevel="on" closepopupdelay="100" firstpopupoffset="-60,0" popupoffset="-20,0" useopacity="on"}% * <a>Vegetables</a> * <a>Carot</a> * <a>Leek</a> * <a>Tomato</a> * <a>Potato</a> * <a>Fruits</a> * <a>Banana</a> * <a>Green</a> * <a>Yellow</a> * <a>Grape fruit</a> * <a>Pink</a> * <a>Yellow</a> * <a>Peach</a>
Simulated
Plugin settings are stored as preferences variables. To reference a plugin setting write %<plugin>_<setting>%
, i.e. %TREEBROWSERPLUGIN_SHORTDESCRIPTION%
data/debug.txt
)
<SOMETHING>_THEME
and contain a comma delimited list of render type with parameters:
You do not need to install anything on the browser to use this plugin. These instructions are for the administrator who installs the plugin on the TWiki server.
<--/twistyPlugin twikiMakeVisibleInline-->
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/dmenu.css | Menu CSS |
pub/TWiki/TreeBrowserPlugin/smenu.css | Nicer menu CSS |
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![]() |
<--/twistyPlugin-->
firstpopupoffset="-163,0"
as a workaround.
natMainContent
overflow:hidden
causes z-index
bug in FireFox. Workaround by removing or overriding overflow:hidden
for natMainContent
.
dtreeTranslucentBackground
only works for pop-up and not level 0. Sizing issue...
dmenu
style. Workaround by using smenu
.
See TWiki:Plugins.TreeBrowserPluginDev.
Plugin Author: | TWiki:Main.ThomasWeigert![]() ![]() |
Copyright: | © 2000-2003 TWiki:Main.AndreaSterbini![]() © 2001-2004 TWiki:Main.PeterThoeny ![]() © 2004 TWiki:Main.ThomasWeigert ![]() © 2006-2007 TWiki:Main.StephaneLenclud ![]() © 2000-2014 TWiki:TWiki.TWikiContributor ![]() |
Sponsor: | Wave Systems Corp.![]() |
License: | GPL (GNU General Public License![]() |
Plugin Version: | 2014-09-29 |
<--/twistyPlugin twikiMakeVisibleInline-->
2014-09-29: | TWikibug:Item7554![]() ![]() |
2014-01-02: | TWikibug:Item7404![]() ![]() |
2013-12-31: | TWikibug:Item7404![]() ![]() |
2013-01-23: | TWikibug:Item6977![]() |
2011-01-19: | TWikibug:Item6638![]() |
2010-07-25: | TWikibug:Item6530![]() |
29 Mar 2007: | (v1.8) - Improved smenu CSS and fixing warning. By Stephane Lenclud![]() |
18 Mar 2007: | (v1.7) - Improved smenu CSS, resolved highlighting gap issue . Now closing sub-menu when highlighting leaf. By Stephane Lenclud![]() |
18 Mar 2007: | (v1.6) - Sub-menus now working in IE with smenu style. Closing sub-menu when going back one level with mouse cursor. By Stephane Lenclud![]() |
18 Mar 2007: | (v1.5) - Adding useopacity parameter. Adding smenu.css . By Stephane Lenclud![]() |
16 Mar 2007: | (v1.4) - Adding firstpopupoffset allowing workaround for PatternSkin problem. By Stephane Lenclud![]() |
14 Mar 2007: | (v1.3) - Adding popup , closepopudelay and popupoffset parameters. Implemented pop-up menu. Improved dmenu.css . By Sephane Lenclud![]() |
11 Mar 2007: | (v1.2) - Adding nodeactions parameter. Improved dmenu.css . By Stephane Lenclud![]() |
10 Mar 2007: | (v1.1) - Adding autotoggle parameter. It's useful for menu style. Improved dmenu.css . Added dtreeRoot CSS class. By Stephane Lenclud![]() |
09 Mar 2007: | (v1.0) - Improved CSS with variable class name allowing for multiple tree with different style on the same topic. Now bullet icon: supports full URL or URI. By Stephane Lenclud![]() |
09 Mar 2007: | (v0.9) - Adding style parameter. Improved CSS. Fixes extra '\n' in dot pm. By Stephane Lenclud![]() |
07 Mar 2007: | (v0.8) - Adding noroot and warn parameters. Now using preRenderingHandler instead of the deprecated startRenderingHandler . %TREEBROWSER% are hidden if there is no tree to render. Fixes TOC icons problem with TWiki:Plugins.NatSkin![]() ![]() |
01 Oct 2006: | (v0.7) - Adding useplusminus , noindent and nocss parameters. By Stephane 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 Stephane 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 |
<--/twistyPlugin-->
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![]() |
Benchmarks![]() |
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![]() |
Related Topics: TWiki:Plugins.RenderListPlugin, TWiki:Plugins.TreePlugin
META FILEATTACHMENT | attr="h" comment="" date="1159656769" name="dtree.js" path="dtree.js" size="12407" user="TWikiContributor" version="" |
---|---|
META FILEATTACHMENT | attr="h" comment="" date="1159656429" name="dtree.css" path="dtree.css" size="817" user="TWikiContributor" version="" |
META FILEATTACHMENT | attr="h" comment="" date="1151849905" name="dmenu.css" path="dmenu.css" size="1095" user="TWikiContributor" version="" |
META FILEATTACHMENT | attr="h" comment="" date="1159656429" name="smenu.css" path="smenu.css" size="817" user="TWikiContributor" version="" |
META FILEATTACHMENT | attr="h" comment="" date="1151849905" name="empty.gif" path="empty.gif" size="62" user="TWikiContributor" version="" |
META FILEATTACHMENT | attr="h" comment="" date="1151849905" name="email.gif" path="email.gif" size="183" user="TWikiContributor" version="" |
META FILEATTACHMENT | attr="h" comment="" date="1151849905" name="xls.gif" path="xls.gif" size="918" user="TWikiContributor" version="" |
META FILEATTACHMENT | attr="h" comment="" date="1151849905" name="joinbottom.gif" path="joinbottom.gif" size="66" user="TWikiContributor" version="" |
META FILEATTACHMENT | attr="h" comment="" date="1151849905" name="question.gif" path="question.gif" size="1044" user="TWikiContributor" version="" |
META FILEATTACHMENT | attr="h" comment="" date="1151849905" name="file.gif" path="file.gif" size="151" user="TWikiContributor" version="" |
META FILEATTACHMENT | attr="h" comment="" date="1151849905" name="musicfolder.gif" path="musicfolder.gif" size="633" user="TWikiContributor" version="" |
META FILEATTACHMENT | attr="h" comment="" date="1151849905" name="person.gif" path="person.gif" size="153" user="TWikiContributor" version="" |
META FILEATTACHMENT | attr="h" comment="" date="1151849905" name="doc.gif" path="doc.gif" size="922" user="TWikiContributor" version="" |
META FILEATTACHMENT | attr="h" comment="" date="1151849905" name="virtualpersons.gif" path="virtualpersons.gif" size="160" user="TWikiContributor" version="" |
META FILEATTACHMENT | attr="h" comment="" date="1151849905" name="imgfolder.gif" path="imgfolder.gif" size="622" user="TWikiContributor" version="" |
META FILEATTACHMENT | attr="h" comment="" date="1151849905" name="folderopen.gif" path="folderopen.gif" size="376" user="TWikiContributor" version="" |
META FILEATTACHMENT | attr="h" comment="" date="1151849905" name="cd.gif" path="cd.gif" size="239" user="TWikiContributor" version="" |
META FILEATTACHMENT | attr="h" comment="" date="1151849905" name="virtualperson.gif" path="virtualperson.gif" size="149" user="TWikiContributor" version="" |
META FILEATTACHMENT | attr="h" comment="" date="1151849905" name="group.gif" path="group.gif" size="162" user="TWikiContributor" version="" |
META FILEATTACHMENT | attr="h" comment="" date="1151849905" name="minus.gif" path="minus.gif" size="86" user="TWikiContributor" version="" |
META FILEATTACHMENT | attr="h" comment="" date="1151849905" name="ppt.gif" path="ppt.gif" size="921" user="TWikiContributor" version="" |
META FILEATTACHMENT | attr="h" comment="" date="1151849905" name="join.gif" path="join.gif" size="69" user="TWikiContributor" version="" |
META FILEATTACHMENT | attr="h" comment="" date="1151849905" name="page.gif" path="page.gif" size="582" user="TWikiContributor" version="" |
META FILEATTACHMENT | attr="h" comment="" date="1151849905" name="nolines_minus.gif" path="nolines_minus.gif" size="861" user="TWikiContributor" version="" |
META FILEATTACHMENT | attr="h" comment="" date="1151849905" name="plusbottom.gif" path="plusbottom.gif" size="88" user="TWikiContributor" version="" |
META FILEATTACHMENT | attr="h" comment="" date="1151849905" name="pdf.gif" path="pdf.gif" size="938" user="TWikiContributor" version="" |
META FILEATTACHMENT | attr="h" comment="" date="1151849905" name="minusbottom.gif" path="minusbottom.gif" size="85" user="TWikiContributor" version="" |
META FILEATTACHMENT | attr="h" comment="" date="1151849905" name="nolines_plus.gif" path="nolines_plus.gif" size="870" user="TWikiContributor" version="" |
META FILEATTACHMENT | attr="h" comment="" date="1151849905" name="persons.gif" path="persons.gif" size="164" user="TWikiContributor" version="" |
META FILEATTACHMENT | attr="h" comment="" date="1151849905" name="sound.gif" path="sound.gif" size="166" user="TWikiContributor" version="" |
META FILEATTACHMENT | attr="h" comment="" date="1151849905" name="home.gif" path="home.gif" size="172" user="TWikiContributor" version="" |
META FILEATTACHMENT | attr="h" comment="" date="1151849905" name="folder.gif" path="folder.gif" size="372" user="TWikiContributor" version="" |
META FILEATTACHMENT | attr="h" comment="" date="1151849905" name="tree.jpg" path="tree.jpg" size="8115" user="TWikiContributor" version="" |
META FILEATTACHMENT | attr="h" comment="" date="1151849905" name="zip.gif" path="zip.gif" size="940" user="TWikiContributor" version="" |
META FILEATTACHMENT | attr="h" comment="" date="1151849905" name="image.gif" path="image.gif" size="943" user="TWikiContributor" version="" |
META FILEATTACHMENT | attr="h" comment="" date="1151849905" name="base.gif" path="base.gif" size="1040" user="TWikiContributor" version="" |
META FILEATTACHMENT | attr="h" comment="" date="1151849905" name="see.gif" path="see.gif" size="81" user="TWikiContributor" version="" |
META FILEATTACHMENT | attr="h" comment="" date="1151849905" name="trend.gif" path="trend.gif" size="149" user="TWikiContributor" version="" |
META FILEATTACHMENT | attr="h" comment="" date="1151849905" name="trash.gif" path="trash.gif" size="1051" user="TWikiContributor" version="" |
META FILEATTACHMENT | attr="h" comment="" date="1151849905" name="line.gif" path="line.gif" size="66" user="TWikiContributor" version="" |
META FILEATTACHMENT | attr="h" comment="" date="1151849905" name="virtualhome.gif" path="virtualhome.gif" size="162" user="TWikiContributor" version="" |
META FILEATTACHMENT | attr="h" comment="" date="1151849905" name="plus.gif" path="plus.gif" size="89" user="TWikiContributor" version="" |
META FILEATTACHMENT | attr="h" comment="" date="1151849905" name="globe.gif" path="globe.gif" size="1095" user="TWikiContributor" version="" |