Opened 9 years ago

Closed 9 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



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 Changed 9 years ago by Djanux

Summary: Cannot change in DatabrowseCannot change title in Databrowse

comment:2 Changed 9 years ago by Russell Keith-Magee

Resolution: invalid
Status: newclosed

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

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