#1108 closed enhancement (wontfix)
[patch] if a IN b filter
Reported by: | scum | Owned by: | Adrian Holovaty |
---|---|---|---|
Component: | Template system | Version: | |
Severity: | normal | Keywords: | in filter |
Cc: | Triage Stage: | Design decision needed | |
Has patch: | yes | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
I've been missing the If In
functinality in the templating system. Attached is an in_ fiter that adds that functionality.
Returns True if a
is found in list b
. False if not found.
{{ a|in:b }}or {{ isThisValue|in:thisListOfValues }}
Attachments (1)
Change History (2)
by , 19 years ago
Attachment: | defaultFilters.diff added |
---|
comment:1 by , 19 years ago
Resolution: | → wontfix |
---|---|
Status: | new → closed |
This is out of the score of the default template filters.
Note:
See TracTickets
for help on using tickets.
defaultFilters diff that adds an
in
filter {{ifValue|in:myList}}