Extension Likes


Extension Basics

Title
Likes
Name
ckanext-likes
Type
Public extension
Description
Universal like functionality for any CKAN object
CKAN versions

~2.9, ~2.10, ~2.11

Show details
Download-Url (zip)
Download-Url commit date
2024-11-01
Url to repo
Category
Content Management


Background Infos

Description (long)
Show details

Flexible and reusable like functionality that can be attached to any CKAN object with a unique identifier. Works with datasets, resources, organizations, groups, users, or custom entities. Features include RESTful API endpoints for like/unlike operations and like counts, customizable UI widgets with snippets for embedding in themes, user tracking with duplicate voting prevention, AJAX-based counter updates with viewport detection, configurable inline loading behavior, and support for pre-populated count/liked status to reduce backend requests.

Version
0.0.1
Version release date
2024-11-01
Contact name
DataShades / Sergey Motornyuk
Contakt email
Contact Url
(not set)


Installation Guide

Configuration hints

Installation: pip install ckanext-likes, add ‘likes’ to ckan.plugins, run ‘ckan db upgrade -p likes’. Usage: Add like widget to any page with {% snippet “likes/snippets/widget.html”, object_id=OBJECT_ID, object_type=OBJECT_TYPE, inline=true %}. For AJAX loading on page load use inline_trigger=”load” (not recommended for pages with many widgets). For pre-populated widgets (no backend requests) use count=N and liked=true/false instead of inline=true. Universal compatibility with any CKAN object that has a unique ID. Supports datasets, resources, organizations, users, and custom content types from other extensions. Use cases: Highlight popular datasets, enable community curation, track user engagement, promote quality content.

Plugins to configure (ckan.ini)
likes
CKAN Settings (ckan.ini)
(not set)
DB migration to be executed
likes
<< back to Extensions