DokuWiki

It's better when it's simple

User Tools

Site Tools


plugin:lightmenu

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
plugin:lightmenu [2025-02-27 17:53] Aleksandrplugin:lightmenu [2025-03-12 12:07] (current) 2a01:e0a:d60:1aa0:9821:f5fe:7b19:118d
Line 2: Line 2:
  
 ---- plugin ---- ---- plugin ----
-description: Very simple plugin which display pure CSS tree menu (inspired from "bisserof" https://codepen.io/bisserof) of wiki hierarchy.+description: Very simple plugin which display pure CSS tree menu (inspired from "bisserof" https://codepen.io/bisserof) of wiki hierarchy. Now with menu label customization.
 author     : Michel Gravier author     : Michel Gravier
 email      : michel.gravier@univ-grenoble-alpes.fr email      : michel.gravier@univ-grenoble-alpes.fr
-type       : syntax+type       : syntax,action
 lastupdate : 2025-02-27 lastupdate : 2025-02-27
 compatible : Release 2024-02-06b “Kaos” compatible : Release 2024-02-06b “Kaos”
Line 29: Line 29:
 the "<lightmenu>" string will be replace by HTML code of the wiki hierarchy.  the "<lightmenu>" string will be replace by HTML code of the wiki hierarchy. 
 Just put "<lightmenu>" inside "sidebar.txt". If your theme display a sidebar the light menu will appear in it. Just put "<lightmenu>" inside "sidebar.txt". If your theme display a sidebar the light menu will appear in it.
 +
 +Customization of menu label name and style possible using dedicated syntax in accessed page code.
  
 ===== Syntax ===== ===== Syntax =====
 +
 +To display the menu add :
  
 <code><lightmenu></code> <code><lightmenu></code>
 +
 +in sidebar page.
 +
 +To customize page menu label name and style add :
 +
 +<code>
 +<lm:{"label":"possible new label","class":"possible CSS class","style":"possible CSS code"}>
 +</code>
 +
 +in the accessed page code.
 +
 +see https://github.com/graviemi/dokuwiki-plugin-lightmenu/README.md.
  
 ===== Configuration and Settings ===== ===== Configuration and Settings =====
Line 48: Line 64:
 === Known Bugs and Issues === === Known Bugs and Issues ===
  
-none+none for now.
  
 === ToDo/Wish List === === ToDo/Wish List ===
plugin/lightmenu.txt · Last modified: by 2a01:e0a:d60:1aa0:9821:f5fe:7b19:118d

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