[ckan-dev] Modify home page template
Thodoris Papadopoulos
thodoris at thodoris.net
Mon Mar 11 17:21:51 UTC 2013
Hi all,
We are working with CKAN 2.0 beta , and we want to modify the home page in
order to display also the Organizations (or the number of organizations).
I am trying to ovveride templates/home/index.html
and insert something like this (which is copied from
templates/organizations/snippets/organization_list.html)
{% for organization in *organizations* %}
{% set first = loop.index0 % 3 == 0 %}
{% set last = loop.index0 % 3 == 2 %}
{% snippet "organization/snippets/organization_item.html",
organization=organization, first=first, last=last %}
{% endfor %}
but of course it will not work since *organizations *is coming from
page.items of page templates/index.html.
Is there any documentation on how all this works ?
How can we query and then display organizations / datasets from home page ?
Regards,
Theodore
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.okfn.org/pipermail/ckan-dev/attachments/20130311/eb4f0e2a/attachment.html>
More information about the ckan-dev
mailing list