Opened 15 years ago
Closed 15 years ago
#15001 closed (invalid)
Cannot change title in Databrowse
| Reported by: | Djanux | Owned by: | nobody |
|---|---|---|---|
| Component: | Template system | Version: | 1.2 |
| Severity: | Keywords: | Databrowse | |
| Cc: | Triage Stage: | Unreviewed | |
| Has patch: | no | Needs documentation: | no |
| Needs tests: | no | Patch needs improvement: | no |
| Easy pickings: | no | UI/UX: | no |
Description
Hi,
This is the content of the base_site.html
{% load i18n %}
{% block databrowse_title %}Foo{% endblock %}
{% block title %}Bar{% endblock %}
{% block extrahead %}HELLO{% endblock %}
when rending the template databrowse_title, and extrahead will be correctly rendered, title will be empty.
Content on the untouched base.html
<title>{% block title %}{% endblock %}</title>
Change History (2)
comment:1 by , 15 years ago
| Summary: | Cannot change in Databrowse → Cannot change title in Databrowse |
|---|
comment:2 by , 15 years ago
| Resolution: | → invalid |
|---|---|
| Status: | new → closed |
Note:
See TracTickets
for help on using tickets.
The title block is set on templates that extend base_site, so any setting you put on base_site is overridden.
If you just want to change the "Databrowse" title on the homepage, then override the homepage.html template