[ckan-dev] Image in featured section (Re: Creating 4 featured groups on the index page instead of 2.)

Sean Hammond sean.hammond at okfn.org
Fri Jun 14 09:05:02 UTC 2013


> I have already changed the featured section (the image) on the start
> page by using "extra_template_paths", which is unfortunately marked as
> "legacy" and "don't use it any more" in the docs (however, for
> extensions it's still recommended in the docs) , but is IMHO the
> simplest way to change existing pages.

This should not have been marked as legacy as far as I know, it's the
correct and simplest way to set a custom templates directory so you can
start customizing the templates. I'm going to go ahead and unmark it.

> Then copy template files for pages you want to change from
> "src/ckan/ckan/templates" to this dir.

Yes, but you can use ckan_extends and Jinja blocks to override only
certain parts of the templates, without having to copy entire files into
your directory:

http://docs.ckan.org/en/latest/templating.html#ckan-extends
http://docs.ckan.org/en/latest/template-blocks.html




More information about the ckan-dev mailing list