]> oss.titaniummirror.com Git - webber.git/blobdiff - in/plugins/hierarchy.md
hierarchy.py: preliminary get_hierarchal_sitemap()
[webber.git] / in / plugins / hierarchy.md
index 15388b16734eda50646f27f9a9f664b24bfcab7a..8f331469849c47ab89833249d386af0c6c257999 100644 (file)
@@ -1,7 +1,9 @@
 title: Generate hierarchy
 linktitle: hierarchy.py
 parent: Plugins
+lang: en
 ctime: 2009-06-26
+mtime: 2009-06-26
 
 This is one of the more complex plugins, used to generate menus and
 breadcrumbs. For this, it reads certain keyword from the
@@ -93,7 +95,7 @@ Here's a sample Mako template excerpt:
 = Generation of a side-menu =
 
 This again is done via a suitable [[template_mako]]. The
-template uses the function "`get_sidemenu()`" and returns (level,
+template uses the function "`get_sidemenu()`" which returns (level,
 part_of_path, is_current, title, link) tuples. Again all links are relative
 to the calling page.
 
@@ -105,7 +107,8 @@ to the calling page.
 * "`title`" is the full title for the page
 * "`link`" is the relative URL to the page
 
-Here's a sample Mako template excerpt that converts this into a HTML menu:
+Here's a sample [[Mako template|template_mako]] excerpt that converts
+this into a HTML menu:
 
        <ul id="sidebar">
        % for level, part_of_path, current, page, link in get_sidemenu():
@@ -144,7 +147,7 @@ To generate a site map for your whole project, do something like
 this:
 
        <%
-         site = get_sitemap()
+         site = get_linear_sitemap()
        %>
        <ul>
        % for level, page, link in site:
@@ -157,7 +160,7 @@ normal "`<ul>..<li><ul><li></li></ul>..</il>`" style, you'd could do this
 with some more advanced Mako template magic:
 
        <%
-         site = get_sitemap()
+         site = get_linear_sitemap()
          lvl = -1
        %>
        % for level, page, link in site: