]> oss.titaniummirror.com Git - oss-web.git/blobdiff - in/functions.md
doc: fix ancestry of some pages
[oss-web.git] / in / functions.md
index 9970a64b87246066e83e37b628359350dacfdb9c..d45b2c884d637a729d52a677c029db0071ac5730 100644 (file)
@@ -1,5 +1,5 @@
 title: Functions
-parent: Home
+parent: Webber
 ctime: 2009-06-26
 
 = Calling functions =
@@ -48,7 +48,7 @@ page, you'll get a "`(mtime, ctime, title, link)`" tuple back.
 Defined in [[hierarchy.py|hierarchy]], where you find an example.
 
 
-== get_sidemenu ==
+== get_sidemenu(root) ==
 
 Returns a menu for the current page. For each page in this menu you'll
 get back a "`(level, part_of_path, is_current, title, link)`" tuple.
@@ -56,6 +56,18 @@ get back a "`(level, part_of_path, is_current, title, link)`" tuple.
 Defined in [[hierarchy.py|hierarchy]], where you find an example.
 
 
+== get_sitemap(home, show_orphans) ==
+
+Returns all pages as "`(level, title, link)`" tuples.
+
+You'll need to specify "`root`" if your top-most page is a different one.
+
+To put pages into the sitemap that are outside the parent/child relationships,
+specify "`True`" for "`show_orphans`".
+
+Defined in [[hierarchy.py|hierarchy]], where you find an example.
+
+
 == func ==
 
 A sample function in the [[skeleton.py|skeleton]]. See below.