Opened 9 years ago

Last modified 9 years ago

#12261 closed enhancement

Allow filter to be exclusive or inclusive — at Version 1

Reported by: anonymous Owned by: Geert
Priority: normal Component: WantedPagesMacro
Severity: normal Keywords: WantedPagesMacro filter
Cc: Trac Release:

Description (last modified by Ryan J Ollos)

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)]].

Change History (1)

comment:1 Changed 9 years ago by Ryan J Ollos

Description: modified (diff)
Note: See TracTickets for help on using tickets.