Extensions Tutorial
From CKAN
| This page is Deprecated as its content is being moved to the Administrator Manual. |
A tutorial on creating Extensions for CKAN. In this tutorial we will walk through creating a basic hello world extension for CKAN.
Contents |
Getting Set Up
Prerequisites: CKAN Installed
To develop an extension it's best to have CKAN installed. To install CKAN see: http://ckan.org/install/
Strictly you don't need CKAN installed to develop extension but without it installed it will be impossible to test or view your efforts!
Code for this Tutorial
You can get the code for this tutorial from the mercurial repository:
Or download individual steps directory from the downloads directory:
Tutorial
The aim: create a new /helloworld page on the CKAN site with some simple interactivity
Step 1: Create the extension
We suggest you skip this step and just grab the step 1 code from the repo or the downloads area.
Step 2: Create a 'controller' to handle the helloworld action
Here we copy one I made earlier