Description of a Macro, which shows a moin-page as a hierachical tree-structure

Tell your story here:

A macro shows a unordered list as a folder-structure.

Let us look on an example:

What is the problem you are trying to solve?

Since I work with MoinMoin (Jan. 2003), I often thougt, that I need a system to organize my own informations:

So this macro should offer a collapsed view of the tree-structure and it should offer two types of links:

The goal is, to present menu-like-structures in a tree, expanding or collapsing, as the user needs it.

(Picture should follow)

should it be something like this (While it is not wiki javascripts needs to be enabled): http://www.fz-juelich.de/vislab/software/idl_samples/IDL-Beispielsammlung.html and should it always show the structure as in the left frame and probably the wiki page on the right one. Probably it could be a fine extension to the right or left side bar themes. -- ReimarBauer 2005-10-17 20:52:21

Discussion

Maybe that this looks similar to the well known action "LocalSiteMap", which builds a TreeStructure too. But the Tree-Hierarchy depends on all Links, which are placed on the page and the second level of the tree was builded from the links on the pages from the first page. If you want to build a complete menu, you have to write many menu-pages.
With this Macro (or maybe Action), users will be able to build menus with one page, making a central point for many subjects or building special topic-portals. -- KlausHeinisch 2005-10-14 19:25:36

Here is possible solution, I hope this is what you mean:

You create an expandable tree view on a page with a tree parser:

 - First branch
  - [http://www.example.com/ External Link Leaf]
  - LocalWikiPageLeaf
 + Second branch
  + Sub branch
   + LocalWikiPageLeaf

In the examples bellow, I use * to create lists, the final list will not have a bullet.

This parser will render the tree as a list which can be expanded and collapsed:

When clicking on a branch it is expanded one level:

When clicking on a + or -, the branch is expanded all levels:

If you want to have the same tree on many pages, you put it on a page and include the page in the other pages.

I did some experimental tree navigation by enhancing the rightsidebar theme quite some time ago, see ThemeArchiveMarket. Recently I refactored this solution using an action LocalSiteTree (derived from LocalSiteMap) and patched it into the monomoin theme. See screenshot. Very easy to implement in themes that use the metaphor of navigation panels. It makes a difference between subpages and other related pages and have configured the action to suppress underlay pages and check for depth and node count limits. If anyone is interested I can provide code and someone can polish it from the usability point of view, integrate moin theme config so you can switch off panels etc, which I will not be able to do soon. -- RobertSeeger 2005-10-26 23:37:03


MoinMoin: FeatureRequests/ClickableTreeStructure (last edited 2007-10-29 19:08:04 by localhost)