Ticket #2503 (closed enhancement: fixed)
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:2 Changed 23 months ago by toby
@aron,
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?
Note: See
TracTickets for help on using
tickets.