Edgewall Software

Ticket #7124 (new enhancement)

Opened 6 months ago

Last modified 3 months ago

Improved TitleIndex macro: optionally ignores pages shipped with Trac

Reported by: TJ <support@…> Owned by: osimons
Priority: normal Milestone: 0.12
Component: wiki system Version: 0.11b2
Severity: normal Keywords: consider
Cc:

Description

I wanted to have TitleIndex on the front page of my Trac but didn't want the clutter of listing all the pages that are shipped with it.

I've created a patch for class TitleIndexMacro to achieve my aims. There's an additional parameter ignore. When set to 1 TitleIndex will not list the built-in pages. E.g.

[[TitleIndex(format=group,ignore=1)]]

If ignore=0 or is omitted then it lists all pages.

Attachments

trac-0.11b-wiki-macros.diff (1.5 kB) - added by TJ <support@…> 6 months ago.
TitleIndex optionally ignores built-in pages

Change History

Changed 6 months ago by TJ <support@…>

TitleIndex optionally ignores built-in pages

Changed 6 months ago by cboos

  • keywords consider added
  • milestone changed from 0.11 to 0.11.1

Well, that's an useful feature, but I don't think your current implementation is suitable (e.g. ignoring all 'Inter*' files). A better approach would be to explicitly ignore all pages in the list of known help pages.

But have a look at TracDev/Proposals/NewHelp branch. I think this won't even be necessary once we switch to this.

Changed 4 months ago by osimons

  • owner changed from cboos to osimons
  • milestone changed from 0.11.2 to 0.12

'Cluttering' of the wiki by help pages is a major reason for NewHelp. Moving this to 0.12 - currently the target for this branch.

Changed 3 months ago by osimons

  • milestone changed from 0.13 to 0.12

Hmm. Batch update of milestones? Moving back to 0.12.

Add/Change #7124 (Improved TitleIndex macro: optionally ignores pages shipped with Trac)

Author



Change Properties
<Author field>
Action
as new
as The resolution will be set. Next status will be 'closed'
to The owner will change from osimons. Next status will be 'new'
The owner will change from osimons to anonymous. Next status will be 'assigned'
 
Note: See TracTickets for help on using tickets.