[ckan-dev] Showing organizations' datasets for member users

Timothy Giles timothy.giles at slu.se
Thu Jun 15 12:13:02 UTC 2017


Ok. You need to generate and add a suitable list to the c session object. You should then be able to display the result in a similar fashion.

If no one else replies I'll add some more to this tomorrow for you.

/ Tim
________________________________________
From: ckan-dev [ckan-dev-bounces at lists.okfn.org] on behalf of Hossein Nevisi [hossein.nevisi at gmail.com]
Sent: 15 June 2017 11:43 AM
To: ckan-dev at lists.okfn.org
Subject: [ckan-dev] Showing organizations' datasets for member users

Hi everyone,

I am almost new to CKAN, so I would appreciate if you could help me. In CKAN, we have a "My Dataset" tab in which we list the datasets that users created:

 {% if c.user_dict.datasets %}
{% snippet 'snippets/package_list.html', packages=c.user_dict.datasets %}

Similar to this, I am going to add a new tab into user's dashboard, and I am going to list those datasets that the user is a member of their owner organizations.  Is there any easy way that I can change the above code for my purpose? Could you please help me on this matter?


Many thanks,
Hossein



More information about the ckan-dev mailing list