Modify ↓
Opened 10 years ago
Closed 10 years ago
#12261 closed enhancement (fixed)
Allow filter to be exclusive or inclusive
Reported by: | anonymous | Owned by: | Geert |
---|---|---|---|
Priority: | normal | Component: | WantedPagesMacro |
Severity: | normal | Keywords: | WantedPagesMacro filter |
Cc: | Trac Release: |
Description (last modified by )
The filter=
argument is exclusive. In a Trac environment that supports many different projects, the argument to filter can become unwieldy. Maybe an additional parameter, filtertype
maybe, could be added to control whether filter is inclusive or exclusive. This type of function would be useful when Trac is supporting multiple projects that are grouped with MyProject/BlahBlah/ and TheirProject/BlahBlah, and you only want to show the wanted pages for MyProject. Rather than having to provide every possible pattern you don't want, you could instead say, [[WantedPages(filter=MyProject, filtertype=inclusive)]]
.
Attachments (0)
Change History (3)
comment:1 Changed 10 years ago by
Description: | modified (diff) |
---|
comment:2 Changed 10 years ago by
comment:3 Changed 10 years ago by
Resolution: | → fixed |
---|---|
Status: | new → closed |
Note: See
TracTickets for help on using
tickets.
Do you mean
ignored_referrers
? You could addexclude
as an alias forignored_referrers
and also addinclude
.