[ckan-discuss] Show Dataset Count Externally
Sam Smith
sam.smith at okfn.org
Wed Nov 28 11:00:06 GMT 2012
..apparently this was previously being achieved with the following JS, but
is now not working:
jQuery(document).ready(function($) {
var group = 'economics';
var url = 'http://thedatahub.org/api/search/dataset?groups=' + group;
$.getJSON(url, function(data) {
// class selector for the page element where info should be inserted
$('.ckanjs-widget-count').html(data.count);
});
});
On 28 November 2012 10:37, Sam Smith <sam.smith at okfn.org> wrote:
> I need to get the number of datasets in a group (
> http://datahub.io/group/economics) and display this number on a webpage.
> Is this possible? How so?
>
> --
> Sam Smith
> Designer
>
>
--
Sam Smith
Designer
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.okfn.org/pipermail/ckan-discuss/attachments/20121128/3a11addc/attachment.htm>
More information about the ckan-discuss
mailing list