Modify

Opened 7 years ago

Last modified 7 years ago

#2033 new enhancement

Let SubWiki Create Nested Unordered-Lists

Reported by: peter.koerner@… Owned by: coderanger
Priority: high Component: HierWikiPlugin
Severity: normal Keywords:
Cc: peter.koerner@… Trac Release: 0.10

Description

Hi I use SubWiki for generating Indexes of my Documentation. I didn't like the way all pages were printeted in a plain list so I searched for some kind of nested index. I didn't find anything like that for the Trac-Wiki ans so I bite the bullet and wrote a recursing function that iterates over the pages-tree and generates a nested view of the pages' subsites. Thiw is the first time I touched python, so please be patient with my coding style ;) Unfortunately I changed the indenting of the original file to one tab per indent, so it's hard to get a good diff of it. I attached the whole subwiki.py so maybe someone could have a look at it.

Attachments (2)

subwiki.py (3.0 KB) - added by peter.koerner@… 7 years ago.
Let Subwiki Create Nested Unordered Lists
hierwikiplugin.diff (4.6 KB) - added by anonymous 7 years ago.

Download all attachments as: .zip

Change History (4)

Changed 7 years ago by peter.koerner@…

Let Subwiki Create Nested Unordered Lists

comment:1 Changed 7 years ago by jeff@…

  • Priority changed from normal to high

This patch should definitely be applied -- it's well worth it, thanks!

I'm going to add a link to this buy on the HierWiki plugin page since this is the way the list *should* be generated.

Changed 7 years ago by anonymous

comment:2 Changed 7 years ago by anonymous

I have enhanced further to produce different output style with 3rd paramter. The attachment:hierwikiplugin.diff contains the change so it should now be easier to merge. But I only did 0.10 version.

Here is the meaning of the style parameter:

0
ParentPage/SubPage? Page Name
1
SubPage? Page Name
2
Page Name?
3
ParentPage/SubPage?
4
SubPage?

Add Comment

Modify Ticket

Action
as new The owner will remain coderanger.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.