Extension Disable Related Items


Extension Basics

Title
Disable Related Items
Name
ckanext-disable_related
Type
Public extension
Description
Extension that disables CKAN's Related Items feature by returning 404s for URLs, blocking API methods, and removing the Related Items tab from dataset pages
CKAN versions

~2.9, ~2.10, ~2.11

Show details
Download-Url (zip)
Download-Url commit date
2025-10-10
Url to repo
Category
Specialized Tools


Background Infos

Description (long)
Show details

An extension for CKAN that completely disables the Related Items feature. This extension provides three key functionalities: returns HTTP 404 errors for all related items URLs, returns authorization denied responses for related items API methods, and removes the Related Items tab from dataset pages. Useful for CKAN instances that don’t want to use the Related Items functionality (which was later replaced by the Showcase extension in newer CKAN versions).

Version
0.0.1
Version release date
2025-10-10
Contact name
Sergey Motornyuk
Contakt email
Contact Url
(not set)


Installation Guide

Configuration hints

Requirements: - Developed and tested with CKAN 2.3.1 - Python 2.6 or 2.7

Development Installation: 1. Activate your CKAN virtual environment 2. Clone the repository: git clone https://github.com/DataShades/ckanext-disable_related.git cd ckanext-disable_related 3. Install in development mode: python setup.py develop 4. Add ‘disable_related’ to the ckan.plugins setting in your CKAN config file 5. Restart CKAN

Features: - Returns HTTP 404s for all related items URLs - Returns authorization denied responses for related items API methods - Removes the Related Items tab from dataset pages - Completely disables Related Items functionality

Testing: Run tests: nosetests –nologcapture –with-pylons=test.ini

Run tests with coverage: nosetests –nologcapture –with-pylons=test.ini –with-coverage –cover-package=ckanext.disable_related –cover-inclusive –cover-erase –cover-tests

Note: This extension is useful for CKAN instances that prefer to use the newer Showcase extension (ckanext-showcase) instead of the older Related Items feature.

Development Status: Beta

License: GNU Affero General Public License (AGPL) v3.0 Copyright © 2015 Link Web Services Pty Ltd

Plugins to configure (ckan.ini)
# disable_related=ckanext.disable_related.plugin:Disable_RelatedPlugin
CKAN Settings (ckan.ini)
(not set)
DB migration to be executed
(not set)
<< back to Extensions