Extension Fileedit


Extension Basics

Title
Fileedit
Name
ckanext-fileedit
Type
Public extension
Description
Simple file editor for CKAN admin panel
CKAN versions
Download-Url (zip)
Last commit
9 years ago (2016-09-24 19:06:56)
Url to repo
Category
Content Management


Background Infos

Description (long)
Show details

ckanext-fileedit

A minimal text editor for CKAN sysadmins

ckanext-fileedit screenshot

ckanext-fileedit lets you edit text files through the CKAN Admin interface. You can provide a function to validate file contents before they are saved, e.g. to make sure a JSON or template file is valid. You can also provide a function to run after the file was saved successfully, e.g. to restart the web server or clear a cache.

Minimal config

ckan.plugins = ... file_edit

file_edit.editable_files = [{"path": "/path/to/my/file"}]

Full config

ckan.plugins = ... file_edit

file_edit.editable_files = [
  {
    "path": "/path/to/my/file",
    "label": "My File",
    "validate": "ckanext.mytheme.validators:file_validator",
    "after_update": "ckanext.mytheme.tasks:notify_owner"
  },
  {
    "path": "/path/to/another_file"
  }]

Indentation on the left is required for the ini parser to pass the complete JSON editable_files value

Version
Version release date
(not set)
Contact name
(not set)
Contakt email
(not set)
Contact Url
(not set)


Installation Guide

Configuration hints
Plugins to configure (ckan.ini)
file_edit file_edit file_edit file_edit
CKAN Settings (ckan.ini)
# ckan.plugins = ... file_edit
DB migration to be executed
(not set)
<< back to Extensions