Opened 15 years ago
Closed 15 years ago
#12376 closed (duplicate)
Nested blocks don't work inside an ifnotequal tag
Reported by: | Owned by: | nobody | |
---|---|---|---|
Component: | Template system | Version: | 1.1 |
Severity: | Keywords: | nested block | |
Cc: | Triage Stage: | Unreviewed | |
Has patch: | no | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
The blocks inside a 'master' block can't be overwritten, if they are inside an {% ifnotequal %} tag (and, I suspect, any other 'if'-like tag, too). Consider this master template for basic pagination:
http://dpaste.com/hold/133172/
If I want to overwrite {% block pagination_start %}, the extending template is ignored alltogether:
http://dpaste.com/hold/133173/
which displays exactly the same as the master template.
Expected Output:
The rendering should be like the master, but the first and the last list item should have vanished.
Duplicate of #6510.