Opened 5 years ago

Closed 5 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: UI/UX:

Description

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.

a.html
{% include b.html %}

b.html
{% block x}replaced?{% endblock %}

c.html
{% extends a.html %}

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

Change History (1)

comment:1 Changed 5 years ago by lrekucki

  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset
  • Resolution set to duplicate
  • Status changed from new to closed

Looks like a duplicate of #12008.

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