Opened 15 years ago

Closed 14 years ago

#18125 closed Bug (fixed)

Using filters in if tag example is misleading

Reported by: ebrelsford@… Owned by: nobody
Component: Documentation Version: 1.4
Severity: Normal Keywords:
Cc: Triage Stage: Ready for checkin
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

In the template language documentation, there is an ​example where the length filter is used in an if tag where a list's length is compared to 1. It starts with "You can also use filters and various operators in the if tag..."

Since the filter returns a string and the comparison will be a string comparison, this basically works in the example but anything more complicated is likely to fail. I think it would be helpful if a caveat was written into this example that made this clear.

Attachments (1)

filters_in_tags.diff​ (586 bytes ) - added by ebrelsford@… 14 years ago.
patch to add caveat

Download all attachments as: .zip

Change History (6)

comment:1 by ebrelsford@…, 15 years ago

Component: Uncategorized → Documentation
Type: Uncategorized → Bug

comment:2 by Jannis Leidel, 14 years ago

Triage Stage: Unreviewed → Accepted

Sounds like a good idea, feel free to write the caveat.

by ebrelsford@…, 14 years ago

Attachment: filters_in_tags.diff​ added

patch to add caveat

comment:3 by ebrelsford@…, 14 years ago

Has patch: set

I've attached my attempt at making a caveat. I'm new at contributing and documentation, so please let me know if I need to change anything.

comment:4 by Tomek Paczkowski, 14 years ago

Triage Stage: Accepted → Ready for checkin

Patch looks good to me.

comment:5 by Aymeric Augustin <aymeric.augustin@…>, 14 years ago

Resolution: → fixed
Status: new → closed

In [06ea10e1f19ec311f4f6c71d5446c12e92807497]:

Fixed #18125 -- Explained caveat with filters

Thanks ebrelsford AT gmail.com and oinopion.

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