[Moin-user] Updated Navigation Macro (now attached)

Eric Davis endavis at gmail.com
Mon Aug 27 15:20:02 EDT 2007


Hey everyone,

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 and siblings
  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.

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, childtree, slideshow, slides (default:
		children)

1 \ maxdepth 	the maximum depth to search (default: No limit)

format 		the format of the list, 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)

-------------- next part --------------
A non-text attachment was scrubbed...
Name: Navigation.py
Type: text/x-python
Size: 16717 bytes
Desc: not available
URL: <http://mail.python.org/pipermail/moin-user/attachments/20070827/7957ab2e/attachment.py>


More information about the Moin-user mailing list