This DokuWiki plugin introduces outline page layout.
Fragments of page can consist from nested collapsible nodes. Clicking on outline node title will expand or collapse it. If the node is collapsed, floating tip with node content is displayed on mouse hover (this can be disabled per node).
Each node state is saved into cookie, so state of whole outline tree is remembered on each page visit.
You will need dokuwiki version later than 2005-08-02 which has support for plugin subfolders.
--> Top level text
--> Next level information
Stuff in next level
<-- Next level information
^ Closes next-level section
<-- Top level text
^ Closes top level section
--> Second top-level section
<-- Second top-level section
Make sure you have the line breaks!
To define simple outline layout, use:
--> Outline title
To open outline node, and:
<-- Outline title
to close it.
Outline node tag must start on new line and can be preceeded by any amount of space. Text after node closing tag is ignored, it‘s useful for marking each closing tag to pair it with starting tag easily when reading the raw dokuwiki text.
You can append ^ at the end of opening tag, to specify that such node will be initially expanded:
--> Outline title ^
You can append # at the end of opening tag, to disable mouseover popup on that node:
--> Outline title #
Of course yo can combine these, no matter in what order you put it:
--> Outline title #^
or
--> Outline title ^#
or even
--> Outline title # ^
Nodes can be nested:
--> Outline 1
This text is part of node 1
--> Outline 2
This text is part of node 2
--> Outline 4
This text is part of node 4
<-- Outline 4
This text is part of node 2
<-- Outline 2
This text is part of node 1
--> Outline 3
This text is part of node 3
<-- Outline 3
This text is part of node 1
<-- Outline 1
F16 Shelter | | | |
Dit is de F16 shelter
F16 | | | |
Dit is dan de echte F16 met een aantal subnodes
Outline 4 without popup | | | |
This text is part of node 4
|
This text is part of node 2
|
This text is part of node 1
Outline 3 | | | |
- This text is part of node 3
|
This text is part of node 1
|
--> Outline 1 initially open ^
This text is part of node 1
--> Outline 2
This text is part of node 2
--> Outline 4 without popup #
This text is part of node 4
<-- Outline 4
--> Outline 5
This text is part of node 5
<-- Outline 5
This text is part of node 2
<-- Outline 2
This text is part of node 1
--> Outline 3
This text is part of node 3
<-- Outline 3
This text is part of node 1
<-- Outline 1
⇒ NOTE: This version of outliner is not compatible with Dokuwiki versions above 2006-11-06.
There is latest version 1.7.1 for download.
Mirror 1
Mirror 2
Unzip it into dokuwiki plugins folder. Then edit included style.css file and define your favorite style.
, Version 1.7.1:
Fixed: Typo in CSS for floating hints. Thanks to Chris.
Fixed: Starting regexp destroyed page layout in some cases. Thanks to Henry Olders.
, Version 1.7:
Changed: Changed the way how spacing is done. Removed blank.gif approach, changed to style sizing
Tweak: Renamed layers and javascript function names to avoid conflicts (appended outliner_)
Added: # flag to specify no-popup
Tweak: Changed flags detection at the end of line
Tweak: New line after closing tag is no more needed
, Version 1.6.1:
, Version 1.6:
Fixed: IDs of nodes generated randomly, now works with ifauth plugin
Fixed: Change plugin order to work with some other plugins correctly
Fixed: Some small changes in generated markup
, Version 1.5:
, Version 1.4:
, Version 1.3:
, Version 1.2:
Added ^ modifier to specify initially open node
Fixed reading of node state from cookies
Changed PType from block to normal so redundant paragraphs are not created
Tweaked CSS block sizes little bit
-
, Version 1.1:
Fixed ending tag detection so the text after <-- is not required.
Version 1.0:
Initial version
When title contains non-ascii characters, it doesn‘t recognize node start (have to change regexp).
Some flickering in Mozilla/Firefox. No idea what causes it. domTT javascript doing something weird?
If ACL is used, you lose your Login Information after expanding a Outliner, and need to relogin!
--> Try with a table inside
^ Title 1 ^ Title 2 ^ Title 3 ^
| cont 1 | cont 2 | cont 3 |
| cont 1.1 | cont 2.1 | cont 3.1 |
| cont 1.2 | cont 2.2 | cont 3.2 |
| cont 1.3 | cont 2.3 | cont 3.3 |
<-- Try with a table inside
— Fred 2007/06/18
This plug-in does not work with Dokuwiki versions newer than 2006-11-06 — Gary 2007/08/04
Add tag to define initially expanded node 1.2 Done
Add modifier to force always collapsed/expanded node (no state saving). + and - should be used.
domTT script is filling the tooltip div after showing it, it causes unpleasant sluggish redrawing when tooltip is first shown.
Make nodes editable separately (like sections). No idea how to achieve this.
Cleanup code
Plugin uses domTT.js javascript to manipulate floating hints. This file should be included in latest versions of DokuWiki, located inside /lib/scripts/ folder.
This plugin needs support for subfolders inside plugin folder. It was introduced in DokuWiki on 08-02-2005. So it will not work in older releases. It is possible to make it working in older version by splitting plugin into two plugins.
Great work on the outliner! It would be great to be able to specify a numbering scheme for the outline. In particular, we often use 1.0, 1.1, 1.1.1, 1.2.1.x…. style number for requirements and other docs that we create using DokuWiki - but this is only one type of numbering that people might like to see. If you could implement a framework for specifying a numbering scheme, and one or two implementations, I‘m sure the community would add more variants to the package.
Interesting idea. I will consider what can be done here, will not be easy task… — Pavel 2005/11/04 14:04
I am using this plugin with DokuWiki on a Stick http://www.splitbrain.org/blog/2007-12/01-dokuwiki_on_a_stick#MTC_form which is version 2007-06-26b but it seems that the plugin is not working. It will not expand when I click on it, the cursor changes to a hand but when I click on it nothing. I have tried it with FireFox and two versions of IE but its all the same. Any ideas
Expand | | | |
Not having any luck getting this working. I downloaded and unzipped in the plugin directory, any suggestions? Thanks.
What problems do you have? No parsing at all? Do you have correct permissins on files? As well you should have quite recent DokuWiki that supports subdirectories in plugin directory. I‘m not sure from which version this started…
> No Parsing at all. Windows 2003 Server, Apache 2.0.54, Dokuwiki 7-13-2005. Apache is running as a service and user account for that service has full control of all files.
So it will not work for you. Plugin subfolders support was added on
Thanks, that fixed it.
Great plugin. But unfortunatelly, it doesn‘t work, when title contains non-ascii characters.
Fixed in version 1.4
Doesn‘t work. No idea. I get javascript errors of not defined loadOutlineState and toggleLine. No mages appear in Firefox and images of blank.gif in Explorer appear with wrong path ( http://lib/images/blank.gif). I‘m using Apache 2.0.54 on Windows with PHP5 and the latest version of dokuwiki available with darcs. What‘s wrong??
First, I would like to thank you for a great extension
I had 2 problems when I tried to install Outliner, perhaps this explaination will help people with the same problem
1. The newest version of Dokuwiki is the one at the bottom at Dokuwiku
2. The path to outliner should be /dokuwiki/lib/plugins/outliner (I didn‘t read carefully enough in the documentation so I tried to install outliner in /wiki/plugins/outliner)
3. I had to remove the cache to rebuild the page.
Is it possible to create a shortcut for expand/collapse all of the tags?
No, it‘s not possible at the moment.
Did you think of using outliner together with the sidebar template: it would be great to use it to expand/collapse the index tree.
That‘s a nice idea, anyway I think it would be useless now when the sidebar is quite short.
Well, why not give it a try, we will see. Thanks for suggestion.
Is there any way you would share your style.css with the rest of us?
Unfortunately, I cannot unzip the file. Will you check that the plugin source is not corrupted?
The file is perfectly readable. Please try to clear your browser cache and bypass any filtering proxies you may use. Anyway I have put a copy of the file here. If not helpful, I can mail you the file.
Hi! The possibilities your plugin offers are greate. Unfortunately I don´t manage to get it work.
my settings__: dokuwiki-2005-09-22; outliner-plugin unziped in dokuwiki/lib/plugins/outliner (nothing changed yet)
> problem__: when using your example oder mine:
–> Outline title ^
test
←- Outline title
Nothing is parsed- I just get plain text; result:
Outline title
test
Do you have a clou what happened here?
Hi, can you see the –> and ←- in the result? If yes, then plugin is not seen at all by server due to wrong file permissions. If not, then I have no idea what happened. I need more details, for instance the result page html source. Please contact me by email. Pavel
Hi! Your plugin seems to be very useful. Recently, I Installed new version of outliner plugin. But I can‘t get what I expected.
I am using dokuwiki-09-22. lang is korean.
I typed
–> chap 1
–> section 1
←- section 1
←- chap 1
the result is
chap 1 \\
-> section 1 \\
I think there is a problem because I am using international language. Thanks in advance.
Please contact me via email. Thanks. — Pavel Vitis 2005/11/06 13:56
First off, I think this is one of the best plugins available!! However, I was having some XHTML validation problems after installing it. After doing some investigating I saw that the <p> tag was closing before the last <td><tr><table> tags were closed. I changed the PType to ‘block’ and the parser no longer put a closing </p> tag between calls to outlinerStart and outlinerEnd, therefore making the XHTML validate. As far as I can tell the plugin still functions as expected, but I have only tested in Firefox. Just FYI.
Thank you for a super plugin!
I am having a problem when I interleave outliner blocks with list elements. It appears that a list element triggers a subsequent outliner block to be indented a level. This indentation increases each time one or more list elements appear before an outliner block. Please see this page.
Henry Olders
Thanks to you for discovering this problem. I will have to fix this in the upcoming release.
In the meantime, the quick fix:
Please edit your start.php file in Outliner folder and change the pattern string inside connectTo() function to following:
'\n[ \t]*-->[^\n]*\n(?=.*\n[ \t]*\x3C--)'
— Pavel Vitis 2006/05/24 23:37 CEST
That doesn‘t seem to have fixed the problem for me, Pavel. What I am looking for is that each of the items, whether list or outline, be pushed up against the left margin initially.
— Henry Olders 2006/06/12
Seems rather that was just a caching problem on your page. Now it looks correctly to me. Please confirm if it solved the problem.
— Pavel Vitis 2006/06/21 17:32 CEST
Hi Pavel, There are a couple of errors in the last lines of your style.css.
/* Floating tip content */
div.floating td.outline-content {
font-family: 'Zurich Cn BT', 'Trebuchet MS', Verdana, Arial, Helvetica, sans-serif;
font-size: 0.85em !important;
padding-botom: 0px; /* should be padding-bottom */
margin-botom: 0px; /* should be margin-bottom */
}
— Chris 2006-06-28
Thanks once more for ur good work
- But here is the problem:
if i use a ordered list
i need do write \\ + ‘enter’ to not have this problemme √
Outline 1 initially open
the list continues here, but not if you put an enter before and after outline what btw solves the problem. Can you fix this please it looks wired. btw in my wiki even more: the editbutton and all foobars are in the outline Oo … “thats no bug thats a feature: hidepage” ,-) can you fix this please thanks — Neosky 2006-08-15
Nodes with ^ doesn‘t show expanded with Dokuwiki 2006-11-06 final. Could you please fix that? BTW, great work!
— Venator85 2006-11-06
This will be fixed in the next release. Thanks for reporting.
— Pavel Vitis 2006/11/07 19:47 CEST
If you want outliner to auto expand nodes marked with ‘^’ then edit script.js and add the prefix ‘DokuCookie.’ to
instances of getCookie(), setCookie() and fixDate(). You‘ll probably have to clear your cache & cookies but it gets
things working with dokuwiki-2006-11-06.
— jmw [at] micronix [dot] com [dot] au 2007-03-23
Many thanks for a wonderful plugin, I have found it very very useuful and with only one small draw back. I have been using for both drop down menu‘s and also as a way to save screen real estate and provide an overview of something. The only problem Ive found is that if you have a small title and a very long conent in the section it gets wrapped around for some reason. Is there any way to prevent this.
Also is there any way to use the text Modifiers like Bold/Italic/Underline for the title
— PDD 2006-11-08
in the last dokuwiki version the outliner close all collapsed lines (in the Sidebar) when I load a page. do you know the reason of this case
— ltgswr 2006-12-18
Look up - this is related to the nodes which doesn‘t show expanded. I really hope that it will be fixed soon
-

If not, maybe some hints. Looks like the cookie code is confused. Probably because the DokuWiki cookie library changed
— jacmoe 2006-12-19
Nice plugin…thanks. But how did you manage to insert it in the sidebar
- ?
first thanks for such a cool plugin… the outline dokuwiki plugin doesn‘t work anymore with dokuwiki-2007-06-26b.tgz… any updates available
— xavier 2007.07.23
i am interested in the same question as xavier….. any updates available
Me too, this is really a beautiful plugin, would be great to get it for current releases (including April 2008 rc). // Bernd, April 16 2008, 15:48
|
|