#1461 closed enhancement (fixed)
Remove Trac% and Wiki% pages from TitleIndex
Reported by: | 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: | |||
Internal 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 , 20 years ago
comment:2 by , 20 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 , 20 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 , 19 years ago
Version: | 0.8.1 → 0.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 , 18 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 , 18 years ago
Milestone: | → 0.11 |
---|---|
Owner: | changed from | to
Status: | new → assigned |
It's been a long time I wanted to implement a structured index…
comment:7 by , 18 years ago
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
Structured page index added in r4232.
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.