Modify

Opened 9 years ago

Closed 20 months ago

Last modified 20 months ago

#2033 closed enhancement (wontfix)

Let SubWiki Create Nested Unordered-Lists

Reported by: peter.koerner@… Owned by:
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@… 9 years ago.
Let Subwiki Create Nested Unordered Lists
hierwikiplugin.diff (4.6 KB) - added by anonymous 9 years ago.

Download all attachments as: .zip

Change History (6)

Changed 9 years ago by peter.koerner@…

Let Subwiki Create Nested Unordered Lists

comment:1 Changed 9 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 9 years ago by anonymous

comment:2 Changed 9 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::
  [wiki:ParentPage/SubPage ParentPage/SubPage] Page Name

 1::
  [wiki:ParentPage/SubPage SubPage] Page Name

 2::
  [wiki:ParentPage/SubPage Page Name]

 3::
  [wiki:ParentPage/SubPage ParentPage/SubPage]

 4::
  [wiki:ParentPage/SubPage SubPage]
Last edited 20 months ago by rjollos (previous) (diff)

comment:3 Changed 21 months ago by rjollos

  • Owner coderanger deleted

comment:4 Changed 20 months ago by rjollos

  • Resolution set to wontfix
  • Status changed from new to closed

The plugin is deprecated since Trac has equivalent functionality as of trac:milestone:1.1.2. If you find any missing function please open a ticket for Trac.

Add Comment

Modify Ticket

Action
as closed The ticket will remain with no owner.
The resolution will be deleted. Next status will be 'reopened'.
Author


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

 
Note: See TracTickets for help on using tickets.