Ticket #320 (closed enhancement: fixed)

Opened 4 years ago

Last modified 4 years ago

site_title configuration variable which is used in template

Reported by: rgrp Owned by: dread
Priority: major Milestone: v1.1
Component: ckan Keywords:
Cc: Repository:
Theme:

Description (last modified by rgrp) (diff)

As a sysadmin I want to configure basic site title information for use in the site templates.

Implementation:

  • ckan.site_title config variable
  • set this on g in app_globals.py e.g.
    • from pylons import config; g.site_title = config.get('ckan.site_title, 'CKAN - Comprehensive Knowledge Archive Network')
  • use in head title and in main site title/logo section (use it as alt on logo image)
  • Also all other pages (e.g. index, about) which talk about CKAN
    • Is this needed? Would it not be better for people who want to customize the site to simply overwrite those templates?

Questions:

  • Do we want a site_logo variable whic his use for site title/logo section instead of site_title if site_logo defined?
  • Probably yes, but not part of this ticket.

Change History

comment:1 Changed 4 years ago by rgrp

  • Owner changed from rgrp to dread
  • Priority changed from awaiting triage to major
  • Description modified (diff)
  • Milestone set to v1.1

comment:2 Changed 4 years ago by dread

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

site_title added in cset:b4c0e0a5630d

site_logo is changeable in one place in the template so not essential

comment:3 Changed 4 years ago by dread

Took 1.5h

Note: See TracTickets for help on using tickets.