Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Limit facets to max 5 #58

Open
johnmartin opened this issue Apr 17, 2013 · 1 comment
Open

Limit facets to max 5 #58

johnmartin opened this issue Apr 17, 2013 · 1 comment

Comments

@johnmartin
Copy link
Contributor

I thought we could add a custom template for ckanext-geodatagov for https://github.com/okfn/ckan/blob/master/ckan/templates/snippets/facet_list.html#L34 however that line even if I change it to: {% with items = items or h.get_facet_items_dict(facet=name, limit=0) %} it's still not working.

It seems to be because this https://github.com/okfn/ckan/blob/master/ckan/controllers/package.py#L267 is overriding everything not matter what I put into the template.

@tobes
Copy link
Contributor

tobes commented Apr 19, 2013

fixed in ckan/ckan#788 but needs merge etc

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants