[ckan-dev] Extending template extensions

Pedro G Silva pedro.gracio at deimos.com.pt
Mon Mar 7 10:35:23 UTC 2016


I'm not sure on this, but I think you need to do the extends and then, on
the block you want to change, call super()

my base.html
{% extends "package/base.html" %}

{% block subtitle %}{{ pkg.title or pkg.name }} - {{ super() }}{% endblock
%}



On Fri, Mar 4, 2016 at 9:41 PM, Harald von Waldow <harald.vonwaldow at eawag.ch
> wrote:

> Hi,
>
> I wonder whether it is possible to extend a template extension that
> extends the original template not with
> {% ckan_extends %}
> but rather with
> {% extends 'filename' %}.
>
> In particular, I want to modify, in my own extension, the template
> "scheming/package/resource_read.html" from ckanext-scheming, which
> starts with
> {% extends "package/resource_read.html" %}.
>
> I played with different places, e.g.,
> scheming/package/resource_read.html and
> package/resource_read.html
>
> and with different extend-statements, e.g.,
> {% ckan_extends %},
> {% extends "scheming/package/resource_read.html" %}
>
> but to no avail.
>
> Thanks,
> Harald
>
> --
> Harald von Waldow
> Eawag
> ICT Services
> Ueberlandstrasse 133
> 8600 Duebendorf
> http://www.eawag.ch
>
>
> _______________________________________________
> ckan-dev mailing list
> ckan-dev at lists.okfn.org
> https://lists.okfn.org/mailman/listinfo/ckan-dev
> Unsubscribe: https://lists.okfn.org/mailman/options/ckan-dev
>
>


-- 


[image: DEIMOS Engenharia, SA] <http://www.deimos.pt>
*Pedro Gracio Silva*
Aerospace Systems / Production Center

*Av. D. Joao II, Lt 1.17.01, 10 • 1998-023 Lisboa, Portugal*
Ph: +351 21 893 3020 • Fax: +351 21 896 9099
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.okfn.org/pipermail/ckan-dev/attachments/20160307/e6dd615c/attachment-0003.html>


More information about the ckan-dev mailing list