Code

Opened 3 years ago

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

Attachments (0)

Change History (2)

comment:1 Changed 3 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 3 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

Add Comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
as The resolution will be set. Next status will be 'closed'
The resolution will be deleted. Next status will be 'new'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.