目录

AcMenu Plugin

2019年12月14日21:57:53这个是关于id=?所有页面的菜单。 显示的没有任何命名空间的文章

—- plugin —- description: An accordion menu for namespaces and relative pages. author : Torpedo email : dcstoyanov@gmail.com type : syntax lastupdate : 2019-11-30 compatible : 2017-02-19 “Frusterick Manners”, 2018-04-22 “Greebo” depends : conflicts : similar : tags : menu, navigation

downloadurl: https://bitbucket.org/tormec/acmenu/get/master.zip bugtracker : https://bitbucket.org/tormec/acmenu/issues?status=new&status=open sourcerepo : https://bitbucket.org/tormec/acmenu/src donationurl:

screenshot_img :


Description

AcMenu provides an accordion menu which lists the content of namespaces in a tree-like format. The tree is built starting from the namespace where the AcMenu's syntax lives till the very end namespace.

This plugin respects the ACL rules and, moreover, the sneaky_index and hidepages options that come with your DokuWiki configuration.

Installation

Search and install ​the plugin using the Extension ​Manager. Refer to Plugin Installation Instructions on how to install plugins manually.

Syntax

In the sidebar page, use the syntax:

<acmenu>

Examples

Just some screenshots to give you an overall idea of the final result.

Suppose you want to create a sub-wiki in your main one, independent from it, as follows:

+--sidebar.txt
+--start.txt
+--products
|  +--start.txt
+--services
|  +--start.txt
+--branch
   +--sidebar.txt
   +--start.txt
   +--products
   |  +--start.txt
   +--services
   |  +--start.txt
   +--private
      +--start.txt
      +--confidential.txt

Than you can populate each sidebar.txt in the following manner:

When a visitor is in :start.txt, the plugin shows the complete namespace tree collapsed except the namespace in which the sidebar.txt, with AcMenu's syntax, is. Only if the visitor's browser has JavaScript disabled all namespaces will reveal their content so that it will be possible to continue the navigation.

If the visitor decides to open the sub-wiki :branch, the AcMenu plugin shows only its sidebar.

To deny the access to certain namespaces or pages you should set the appropriate rule in the ACL management. In addition, it's possible to conceal those namespaces for which the visitor has no permission setting up the sneaky_index option in your Configuration Manager.

Furthermore it's possible to hide all sidebar.txt pages using the hidepages option in your Configuration Manager:

(sidebar|other-pages)

The following image is the behaviour of the AcMenu plugin from the perspective of a user registered.

Since this plugin uses cookies to remember the pages visited (they are automatically deleted as soon as the window browser is closed) if the visitor comes back to :start.txt every namespaces untoggled will remain so.

The order in which the directory tree is presented is the following:

This means that, if the option useheading is enabled, it's possible to force the order of files using a progressive numeration in the first heading of each file.

Configuration and Settings

Hide namespaces and pages

First, set the appropriate permissions in your ACL management. Then, use the options:

Troubleshooting

Symptom: AcMenu doesn't show/hide namespace's content.

Possible solution: be sure that JavaScript is enabled in your browser, otherwise all namespaces remain open showing their content.


Symptom: AcMenu doesn't keep untoggled any namepsace after have opened any link.

Possible solution: be sure that cookies are enabled in your browser, otherwise AcMenu forgets the namespaces untoggled whenever a page is loaded.


Development

Known Bugs and Issues

Please, use the relative bug tracker or write here and then I will move there.
— Torpedo 2017-03-09 16:32