conwetlab / ckanext-datarequests

A plugin that allows users to request data that is not published yet
GNU Affero General Public License v3.0
17 stars 54 forks source link

Add datarequests count #3

Closed jqnatividad closed 9 years ago

jqnatividad commented 9 years ago

So it can be shown in box_stats? See https://github.com/ckan/ckanext-showcase/blob/master/ckanext/showcase/templates/home/snippets/stats.html

aitormagan commented 9 years ago

It's a great suggestion. I'll try to implement it ASAP! :)

jqnatividad commented 9 years ago

Hi @aitormagan, thought you may want to check this PR before implementing https://github.com/ckan/ckan/pull/2400

aitormagan commented 9 years ago

Thank you for the support! :)

aitormagan commented 9 years ago

I've tried to do this but it seems complicated since there can be two different extensions that can extend the template and the behaviour in this case is strange (the template parsed it's different every time). In your case I guess you have one extension that extends the stats.html file so I think it's up to you to add the data requests count in your stats snippet.

I'm really sorry :(

jqnatividad commented 9 years ago

No apologies required @aitormagan! I guess that will have to be customized on an instance per instance basis. Thanks!