Opened 4 years ago

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

Attachments (0)

Change History (3)

comment:1 Changed 4 years ago by Ryan J Ollos

Description: modified (diff)

comment:2 Changed 4 years ago by Ryan J Ollos

Do you mean ignored_referrers? You could add exclude as an alias for ignored_referrers and also add include.

comment:3 Changed 4 years ago by Geert

Resolution: fixed
Status: newclosed

Added functionality in revision r14534.

See wiki for details.

Modify Ticket

Change Properties
Set your email in Preferences
as closed The owner will remain Geert.
The resolution will be deleted.

Add Comment

E-mail address and name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.