Opened 5 years ago

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

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

  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset
  • Summary changed from Cannot change in Databrowse to Cannot change title in Databrowse

comment:2 Changed 5 years ago by russellm

  • Resolution set to invalid
  • Status changed from new to closed

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