Opened 19 years ago

Closed 19 years ago

Last modified 17 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

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)

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

Download all attachments as: .zip

Change History (2)

by scum, 19 years ago

Attachment: defaultFilters.diff added

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

comment:1 by Jacob, 19 years ago

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