Opened 14 years ago

Closed 14 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 Djanux, 14 years ago

Summary: Cannot change in DatabrowseCannot change title in Databrowse

comment:2 by Russell Keith-Magee, 14 years ago

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