Opened 15 years ago

Closed 15 years ago

#12376 closed (duplicate)

Nested blocks don't work inside an ifnotequal tag

Reported by: Manuel Strehl <m.strehl@…> 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


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:

If I want to overwrite {% block pagination_start %}, the extending template is ignored alltogether:

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.

Change History (1)

comment:1 by Johannes Dollinger, 15 years ago

Resolution: duplicate
Status: newclosed

Duplicate of #6510.

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