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

Hossein Nevisi hossein.nevisi at gmail.com
Fri Jun 16 12:22:53 UTC 2017


Hi Tim,

Many thanks for your response. Could you please advise me where I can edit
the c session? I would be really grateful if you could provide me more
details.

Cheers,
Hossein

On Thu, Jun 15, 2017 at 1:13 PM, Timothy Giles <timothy.giles at slu.se> wrote:

> 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
> _______________________________________________
> 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/20170616/c10d707a/attachment-0003.html>


More information about the ckan-dev mailing list