Opened 10 years ago

Closed 10 years ago

#14690 closed (duplicate)

{% block %} defined in {% included %} page isn't 'repleacable'

Reported by: pma_ Owned by: nobody
Component: Template system Version: 1.2
Severity: Keywords: block include
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no


I moved part of template to external file that is included in base template. My block definition in derived template doesn't replace content in include. There are no restriction in docs so I believe it's a bug.

{% include b.html %}

{% block x}replaced?{% endblock %}

{% extends a.html %}

{% block x}new value{% endblock %}

Change History (1)

comment:1 Changed 10 years ago by Łukasz Rekucki

Resolution: duplicate
Status: newclosed

Looks like a duplicate of #12008.

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