DokuWiki

It's better when it's simple

User Tools

Site Tools


plugin:outliner

This is an old revision of the document!


Outliner plugin

Compatible with DokuWiki

2005-08-02 — 2006-11-06 — 2009-12-25c

plugin Enable collapsible outline tree page layout. (Previous author: Pavel Vitis)

Last updated on
2010-03-12
Provides
Syntax
Repository
Source
Conflicts with
include

This extension has not been updated in over 2 years. It may no longer be maintained or supported and may have compatibility issues.

Similar to folded, hidden, hiddenswitch, hidetext, sectiontoggle

Tagged with collapsible, hide

This plugin provides syntax for collapsible sections. It includes support for section titles, nesting, a preview of the section when the mouse is over a closed section title, saving of the current state in cookies and sections opened by default.

This plugin was unmaintained and has been restructured and almost completely rewritten. The old version is available at github, but please aware that it is broken, e.g. it doesn't work at all when you enable previews (see below for details). There is a new version available in the devel branch of the source repository, it can be downloaded at the link provided above. It still doesn't work in Internet Explorer 6, but in the other browsers it should work. Please test the code and report bugs. Feedback concerning the visual appearance is also highly appreciated. The behavior in details and the visual appearance are still subject to change.

Usage

The beginning of a section has to be marked with

--> Title[FLAGS]

, [FLAGS] is optional and can be:

  • # for no preview
  • ^ for opened by default

Sections can be closed by using

<--

on a new line. Sections can also be nested. Example:

--> Section 1 without preview#

  * List item one

Some other syntax.

--> Nested section opened^

Nested content

<--

Main content continue

<--

Notes concerning the "old" plugin

Details and Download FIXME

It does work with the current release (2009-12-25c), at least as far as I tried it but you have to disable the mouse over effect by adding a # after each outline syntax. It also seems to be necessary to keep one line spacing from the syntax to the rest of the wiki text or code.

Example:

--> Group1 #

  * Item 1
  * Item 2
 
<-- Group1

–> Group1 #

  • Item 1
  • Item 2

←- Group1

If someone with more PHP background could strip down the code to the stuff that is working with the current release would be very appreciated.

If you have problems with the output of this plugin, make sure the added newlines do not contain any white spaces. Otherwise the rendering output may be a mess or sometimes just not complete. Use a text editor of your choice that can display white spaces to clean up the page from white spaces in between the Group and the item elements. → This worked for me using this plugin on DokuWiki 2009-12-25c inside the sidebar when using the arctic template.


I've added the code to my github account, URL see above, fixed a HTML/JS injection and provided a download. I will probably try to restructure that plugin as it's not just a simple fix that's necessary. If somebody wants to help, just contact me (e.g. using the bugtracker or my email address), patches are welcome, please use the bugtracker. — Michitux 2010/03/04 10:57

Discussion

I create a discussion section

So, one fix that should be interesting : a group shouldn't collapse anymore each time
we click on an item in it, so we don't have to click over and over to acces other items
it contains. — Frantz 2010-03-05

I think you should use the Issue tracker to help organize this better. – Klap-in
plugin/outliner.1288902988.txt.gz · Last modified: 2010-11-04 21:36 by Michitux

Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 4.0 International
CC Attribution-Share Alike 4.0 International Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki