[ckan-dev] Organization list
Matthew Fullerton
matt.fullerton at gmail.com
Wed Dec 21 20:50:18 UTC 2016
Dear Stéphane,
It's a bit of a workaround and I haven't tested, but try:
{% set organizations = h.get_facet_items_dict('organization') %}
If it works you might have to dig inside what it returns to see which bits
you need.
Best,
Matt
On 19 December 2016 at 22:54, Stéphane Lapointe <lapointes at ogsl.ca> wrote:
> Hi,
>
> can someone tell me how to get all organizations inside a template
>
> I tried the function organizations_available found in th helpers.py
>
> {% set organizations = h.organizations_available('read') %}
>
> but it works only when I'm logged-in.
>
> Thank you
>
> _______________________________________________
> 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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.okfn.org/pipermail/ckan-dev/attachments/20161221/76b2fac9/attachment-0003.html>
More information about the ckan-dev
mailing list