Ticket #2503 (closed enhancement: fixed)

Opened 23 months ago

Last modified 23 months ago

Look into allowing theme extensions to extend base templates

Reported by: aron.carroll Owned by: toby
Priority: minor Milestone: ckan-sprint-2012-06-25
Component: ckan Keywords: demo-theme
Cc: Repository: ckan
Theme: none

Description (last modified by aron.carroll) (diff)

For example:

Creating a template in ckanext-demo/templates/base.html containing something like

{% ckan_extends "base.html" %}

Will extend ckan/templates/base.html

Change History

comment:1 Changed 23 months ago by aron.carroll

  • Description modified (diff)

comment:2 Changed 23 months ago by toby


To clarify this a bit.

We want this so that a extension can create a new template say dataset/read.html but rather than rewriting the core template in ckan it can extend it in the same way as {% extends %}.

The main difference is that {% ckan_extends 'template.html' %} would walk the ckan template tree rather than the extensions template tree.

Is that what we are thinking?

comment:3 Changed 23 months ago by aron.carroll

Toby yeah, that's exactly it.

comment:4 Changed 23 months ago by toby

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

implemented in commit 14067ff

Note: See TracTickets for help on using tickets.