DokuWiki

It's better when it's simple

User Tools

Site Tools


plugin:outliner

Outliner Plugin

Compatible with DokuWiki

  • 2017-02-19 "Frusterick Manners" unknown
  • 2016-06-26 "Elenor Of Tsort" unknown
  • 2015-08-10 "Detritus" yes
  • 2014-09-29 "Hrun" yes

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

Last updated on
2016-01-16
Provides
Syntax
Repository
Source
Conflicts with
include

Similar to folded, hidden, sectiontoggle

Tagged with collapsible, hide

:!: If you are upgrading this plugin please read the changelog

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.

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

<--

Formatting syntax, like lists, can be used within a block, but a blank line must be included before closing the block.

--> First Section#
  * A list item
  * Another list item

<--
--> Second Section#
Content
<--

Settings

There is currently just one setting usecookie that controls if the current state of all sections shall be stored in a cookie for each section and is disabled per default. The cookies are valid for 7 days.

Changelog

  • 2013-08-01
    • Fix the CSS code to be valid so it won't break the LESS parser (which will probably be introduced in the next DokuWiki release)
  • 2013-02-22
    • Migrated the plugin to jQuery so the plugin will still work in the next DokuWiki release (but doesn't work anymore in Rincewind or older).
    • Fundamentally changed the cookie support:
      • Cookies are now disabled per default, but can be enabled again in the settings
      • The ids for the sections are now only based on the id of the page and the position in the page and no longer randomly generated, this means that the cookies should work a lot more reliably
      • The outliner plugin no longer uses the settings cookie but it's own cookies that expire after 7 days (previously the values were stored in the settings cookie and were never deleted which could produce a lot of garbage)
      • the old values are removed from the settings cookie

Issues

Please report any issues in the Issue tracker.

plugin/outliner.txt · Last modified: 2016-01-16 22:17 by Michitux