Opened 13 years ago
Closed 12 years ago
#18125 closed Bug (fixed)
Using filters in if tag example is misleading
Reported by: | 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)
Change History (6)
comment:1 by , 13 years ago
Component: | Uncategorized → Documentation |
---|---|
Type: | Uncategorized → Bug |
comment:2 by , 13 years ago
Triage Stage: | Unreviewed → Accepted |
---|
comment:3 by , 12 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:5 by , 12 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
Sounds like a good idea, feel free to write the caveat.