[ckan-dev] Custom facets: show some facets only if a certain value is selected for a =?utf-8?Q?=E2=80=9Cfather=E2=80=9D_?=facet

Giulia Benotto benotto at netseven.it
Tue Jun 27 08:17:05 UTC 2017


Hi CKAN developers,
I don’t know if it may be useful but I managed to obtain the effect I wanted by modifying the facet-list.html file of my theme. Basically, I wrote a set of “if” conditions that evaluate both the item name and the item status. It’s not perfect and it’s a bit of a tedious process, but it’s the best I could do. If anyone has some other ideas on how to do this, for me it’s still a work-in-progress.
Thanks,
Giulia



On 23 giu 2017, 15:21 +0200, Giulia Benotto <benotto at netseven.it>, wrote:

> Hi CKAN developers,
> I’m trying to develop a new ckan theme and I would like to modify how facets are shown. I have added my own set of metadata and I can now show all of them, while I don’t need to show CKAN default facets.
> What I would like to do is the following: I have some facets that I need to show only if a particular value of a “father” facet is selected.
> How can I do that? Has someone already developed something like this? Any ideas?
> Thank you,
> Giulia
>
> _______________________________________________
> 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/20170627/896c3b59/attachment-0003.html>


More information about the ckan-dev mailing list