- changed title to Create menu without follow namespace with <acmenu> syntax
Create menu without following namespace with <acmenu> syntax
Since the sidebar doesn't offer much space widthwise, a namespace with a very deep hierarchy, that is with many sub-namespaces, will be print in a very ugly way due to the indentation used by the menu.
The idea is to split the menu, at admin discretion, as in the following example.
Let's consider a wiki with the following structure:
+--sidebar.txt
+--start.txt
+--branch
| +--sidebar.txt
| +--start.txt
| +--products
| | +--start.txt
| +--services
| | +--start.txt
| +--private
| +--start.txt
| +--confidential.txt
+--general
+--start.txt
+--stuff.txt
where, the two sidebar.txt
have the following code:
in :sidebar.txt
<acmenu>
in :branch:sidebar.txt
[[..:start| Back to Main]]
<acmenu>
The sidebar in the root will not build the menu for the branch
namespace, since it has its own sidebar, but only for the general
namespace:
⯆ Main
⯀ Branch
⯈ General
⯀ Main
⯆ Main
⯀ Branch
⯆ General
⯀ General
⯀ Stuff
⯀ Main
Note that the branch
's item list mark used is a square instead of an arrow, because now Branch
is treated as a page an not as a namespace.
If a visitor want to open the branch
's menu, it will be opened its sidebar and the branch
's start page will be loaded:
Back to Main
⯆ Branch
⯈ Private
⯈ Products
⯈ Services
⯀ Branch
Comments (7)
-
reporter -
reporter - edited description
-
reporter - changed title to Create menu without following namespace with <acmenu> syntax
-
reporter - edited description
-
reporter - edited description
-
reporter - edited description
-
reporter - changed status to resolved
fixed issue
#14→ <<cset c5d536c67699>>
- Log in to comment