DokuWiki

It's better when it's simple

User Tools

Site Tools


plugin:dwmenu

dwMenu Plugin

Compatible with DokuWiki

  • 2020-07-29 "Hogfather" no
  • 2018-04-22 "Greebo" yes
  • 2017-02-19 "Frusterick Manners" yes
  • 2016-06-26 "Elenor Of Tsort" yes

plugin This plugin displays a menu in a cool way with differents parts

Last updated on
2015-08-28
Provides
Syntax
Repository
Source

Similar to menu

Tagged with menu, navigation

Installation

Search and install the plugin using the Extension Manager. Refer to Plugins on how to install plugins manually.

Examples/Usage

A simple menu with two columns :

<dwmenu col="2" align="center" caption="Accueil">
  <dwitem name="name" description="description" link="link" image="image.png">
    <dwlink link="link" text="text" />
    <dwlink link="link" text="text" />
  </dwitem>
  <dwitem name="name" description="description" link="link">
    <dwlink link="link" text="text" />
    <dwlink link="link" text="text" />
  </dwitem>
  <dwitem name="name" description="description" link="link" image="image.png">
    <dwlink link="link" text="text" />
    <dwlink link="link" text="text" />
  </dwitem>
  <dwitem name="name" description="description" link="link" image="image.png">
    <dwlink link="link" text="text" />
    <dwlink link="link" text="text" />
  </dwitem>
  <dwitem name="name" description="description" link="link">
    <dwlink link="link" text="text" />
    <dwlink link="link" text="text" />
  </dwitem>
</dwmenu>

Syntax

Basic syntax:

<dwmenu col="" align="" caption="">
  • col (integer) : num of columns
  • align (string) : center/right/left
  • caption (string) : text which can be put on the top of the menu

dwmenu tag can contain dwitem tags.

<dwitem name="" description="" link="" image="">
  • name (string) : text which will be drawn on the main link of the item menu
  • description(string) : text which will be drawn under the main link of the item menu
  • link (string) : page ID of the link of the item menu
  • image (string) : link to the image

dwitem tag can contain dwlink tags.

<dwlink link="" text="" />
  • link (string) : page ID of the link
  • text (string) : text of the link

Change Log

FAQ

None for the moment

Discussion

#1

It can be nice :) thank you for your extension

Wrap Plugin + bbCode Plugin =

A source at pastebin.com.

;-)

Aleksandr Selivanov 2013/02/12 12:42

Exactly, but this plugin make it natively. And it permits me to learn how to develop plugins for Dokuwiki. Thank your for your answer.

Progi1984 2013/02/12 18:51

It would be nice to have links to sections of a page. Like:

link="[[namespace1:namespace2#section]]"

Just as Dokuwiki does

Michiel van Erven 2013/05/03 12:25

Hope you'll update the extension for Hogfather version, as your extension is the nicer extension plugin for DW !

ics-informatique 2020/03/10 12:18

plugin/dwmenu.txt · Last modified: 2020-06-10 12:18 by ics-informatique