[Moin-user] Creating a table of contents for subpages?

Jerry Isdale isdale at avinc.com
Tue Jul 31 19:41:40 EDT 2007


I'm a MoinMoin newbie using the DesktopEdition on my MacBook Pro.   
I'm looking into using MoinMoin as a shared system for lots of  
Project related stuff (documentation, requirements, design, developer  
blogging).  My gut says a wiki should be good for some of this and I  
like many things about MoinMoin.

Anyway, my issue du jour:

I'm trying to create a TOC or similar navigation aid for subpages, in  
a specified or sorted manner.
The Navigation(children) macro makes a box with word wrapped titles.   
The Include macro might work but I cant figure out the proper arguments.

For example say I have

MyPage  MyPage/Section 1 Scope,  /Section 2 Reference Documents, / 
Section 3 Requirements, etc.

I'd like to have a simple macro to line them all up as a TOC
  /Section1 Scope
  /Section 2 Reference Documents
  /Section 3 Requirements
etc.
without having to explicitly put them in that way.

Another (better) example might be as a blog...
MyBlog /2007.07.01 /2007.07.02 /2007.07.03 ...
and have a TOC for these, sorted in some ascending/decending order.

Question 1) Is there a way to make Navigation() put things on new  
lines? (simple ans: sure write a python patch)

Looking at the Include macro:

   The titlesonly parameter looks like it would work but I cant seem  
to get it to accept and display.
   I created MyNewPage and four sub pages /Page01 /Page02 /Page03 / 
Page04
   Then on MyNewPage I put in
       [[Include(^MyNewPage/Page.*, , sort=ascending)]]
   and it included the pages directly.
   So I tried
      [[Include(^MyNewPage/Page.*, , sort=ascending, titlesonly)]]
   and it displays nothing.

Question 2:  How do I use Include Macro's titlesonly?

Question 3:  What if I wanted generic (template) macro that would  
work w/o explicitly putting in full name of current page?  explicitly  
What is the the 'pagename' regex for that?

I cant find documentation of "regex" anywhere in MoinMoin.  Being  
geeks, can assume this is short for Regular Expression.

Question 4: Is regex a wrapper on Python's re module such that the  
syntax of regex is as defined in http://docs.python.org/lib/re- 
syntax.html ?  Does anyone else think there should be some reference  
page within MoinMoin' s Help where someone can find this syntax or a  
reference to external docs for it?


Jerry Isdale
isdale at avinc.com



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/moin-user/attachments/20070731/a4062c0c/attachment.html>


More information about the Moin-user mailing list