Edgewall Software
Modify

Opened 14 years ago

Closed 13 years ago

Last modified 13 years ago

#1461 closed enhancement (fixed)

Remove Trac% and Wiki% pages from TitleIndex

Reported by: peter@… Owned by: Christian Boos
Priority: low Milestone: 0.11
Component: wiki system Version: 0.9.3
Severity: normal Keywords:
Cc: Branch:
Release Notes:
API Changes:

Description

We're just getting started with our Trac-based project, and there are just about as many bundled Wiki pages as there are our own. Having these in the TitleIndex clouds our project-specific pages, so this patch removes them.

diff TitleIndex.py.dist TitleIndex.py 
13a14,15
>     else:
>         sql += 'WHERE (name NOT LIKE \'Trac%\') AND (name NOT LIKE \'Wiki%\') '

Attachments (0)

Change History (8)

comment:1 by ebcom@…, 14 years ago

I guess another macro (or the same macro with an arg) would be a better solution if you do no want to get the default wiki pages in the TitleIndex list.

Other people want to get the Wiki syntax, the Trac help pages, etc. at a glance.

comment:2 by Christian Boos, 14 years ago

And the Trac% and Wiki% pages are just regular Wiki pages, that can be edited and adapted by the users like any other.

comment:3 by peter@…, 14 years ago

It would be fine if it could be reformatted as an argument to a macro. I'd somehow want to change the default behavior, though, in the toolbar as well.

comment:4 by tvon@…, 14 years ago

Version: 0.8.10.9.3

Suggestion:

  • Update the TitleIndex macro to take multiple negating arguments starting with '!', eg: [[TitleIndex(!Trac,!Wiki)]] would return all pages not beginning with Trac or Wiki.
  • Make sure all default pages that come with Trac start with 'Trac' or 'Wiki' (though imo s/^Wiki/TracWiki/).
  • Change /wiki/TitleIndex to start with:
= Title Index =

[[TitleIndex(!Trac,!Wiki)]]

== Trac Documentation ==

[[TitleIndex(Trac)]]

== Wiki Documentation ==

[[TitleIndex(Wiki)]]

Or something appropriately similar.

In short, if TitleIndex accepted negating arguments then even if the default was not changed it would allow much more flexability. The documentation is nice to have around when you need it, but it still seems to clutter up the otherwise useful TitleIndex.

My $0.02 anyways.

(bumping this to 0.9.3)

comment:5 by Marc-A. Zizka, 13 years ago

At the very least, a common prefix to all basic Trac pages would be nice (say, Trac/), so they don't get all mixed with the project's pages.

comment:6 by Christian Boos, 13 years ago

Milestone: 0.11
Owner: changed from Jonas Borgström to Christian Boos
Status: newassigned

It's been a long time I wanted to implement a structured index…

comment:7 by Christian Boos, 13 years ago

Resolution: fixed
Status: assignedclosed

Structured page index added in r4232.

comment:8 by Marc-A. Zizka, 13 years ago

Nice :)

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Christian Boos.
The resolution will be deleted. Next status will be 'reopened'.
to as closed The owner will be changed from Christian Boos to the specified user.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.