Opened 9 years ago

Closed 9 years ago

Last modified 8 years ago

#1108 closed enhancement (wontfix)

[patch] if a IN b filter

Reported by: scum Owned by: adrian
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: UI/UX:

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 9 years ago.
defaultFilters diff that adds an in filter {{ifValue|in:myList}}

Download all attachments as: .zip

Change History (2)

Changed 9 years ago by scum

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

comment:1 Changed 9 years ago by jacob

  • Resolution set to wontfix
  • Status changed from new to closed

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

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