[ckan-dev] Organization list

Stéphane Lapointe lapointes at ogsl.ca
Wed Dec 21 23:10:58 UTC 2016


Hi,

it works perfectly for organizations who have datasets.

Thank you.


Le 2016-12-21 à 15:50, Matthew Fullerton a écrit :
> 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 
> <mailto: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 <mailto:ckan-dev at lists.okfn.org>
>     https://lists.okfn.org/mailman/listinfo/ckan-dev
>     <https://lists.okfn.org/mailman/listinfo/ckan-dev>
>     Unsubscribe: https://lists.okfn.org/mailman/options/ckan-dev
>     <https://lists.okfn.org/mailman/options/ckan-dev>
>
>
>
>
> _______________________________________________
> 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/14067637/attachment-0003.html>


More information about the ckan-dev mailing list