Opened 15 years ago

Closed 15 years ago

Last modified 13 years ago

#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


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)

defaultFilters.diff (804 bytes) - added by scum 15 years ago.
defaultFilters diff that adds an in filter {{ifValue|in:myList}}

Download all attachments as: .zip

Change History (2)

Changed 15 years ago by scum

Attachment: defaultFilters.diff added

defaultFilters diff that adds an in filter {{ifValue|in:myList}}

comment:1 Changed 15 years ago by Jacob

Resolution: wontfix
Status: newclosed

This is out of the score of the default template filters.

Note: See TracTickets for help on using tickets.
Back to Top