[Moin-user] Newly Updated Navigation Macro
Eric Davis
endavis at gmail.com
Tue Aug 28 13:58:05 EDT 2007
Hey everyone (again),
I have updated the Navigation macro to include some new things,
including a Tree navigation.
Features of this new macro:
Will work just like the old Navigation macro
[[Navigation(help)]] will print a help table
new types, tree navigation, both children, siblings, and root
new format bulleted list (only applies to siblings and children)
can show full name of page
can pass in a rootpage
can turn off the table around the output
Feel free to include it in MoinMoin.
Newest Stuff:
I added the roottree type since the last update. Several people asked me
why [[Navigation(childtree, rootpage=/)]] or [[Navigation(tree,
rootpage=FrontPage]] didn't work. That is because / is not really a
page in the wiki internals, merely a pointer to somewhere else.
Thanks,
Eric
The Help:
[[Navigation(args)]]: navigate slides or children and sibling pages
Arg Number and/or keyword Argument Definition
---------------------------------------------------
0 \ type the type of navigation valid types are: children,
siblings, tree, roottree, childtree, slideshow,
slides (default: children)
1 \ maxdepth the maximum depth to search (default: No limit)
format the format of the list (only for siblings, children),
valid: bullet, string (default: string)
fullname flag to show the full name of the page, True of False
(default: False)
navtable flag to wrap the output in the navtable, True or False
(default: True)
rootpage the root page to start from, (default: current page)
showsys flag to show system pages, only for roottree, True or
False (default: False)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Navigation.py
Type: text/x-python
Size: 19166 bytes
Desc: not available
URL: <http://mail.python.org/pipermail/moin-user/attachments/20070828/a39ac926/attachment.py>
More information about the Moin-user
mailing list