[ckan-dev] Adding the spatial search widget to organization page

Jessica Good jessica.good at azgs.az.gov
Wed Aug 20 22:37:57 UTC 2014


I would like to add the spatial search widget to the page for an
organization but am getting an error. I have added it successfully to
the dataset search page template per the instructions at
http://docs.ckan.org/projects/ckanext-spatial/en/latest/spatial-search.html
and followed the same format to add it to organization/read_base.html:

{% ckan_extends %}

{% block secondary_content %}
  {% snippet 'snippets/organization.html', organization=c.group_dict,
show_nums=true %}
  {% snippet "spatial/snippets/spatial_query.html",
default_extent="[[31.516, -113.816], [37, -110.05]]" %}
  {% block organization_facets %}{% endblock %}
{% endblock %}

The error I am getting is:

CkanUrlException: An Exception has been raised for template
organization/read.html An Exception has been raised for template
spatial/snippets/spatial_query.html There is a broken url being
created {'action': u'read', 'controller': u'organization'}

Any thoughts? Thanks!



More information about the ckan-dev mailing list