Extension Feedcontent


Extension Basics

Title
Feedcontent
Name
ckanext-feedcontent
Type
Public extension
Description
Allows for content from rss/atom feeds to be inserted into pages.
CKAN versions

~1.7

Show details

These CKAN Versions are exactely matched:

Download-Url (zip)
Last commit
13 years ago (2012-05-31 13:08:11)
Url to repo
Category
Content Management


Background Infos

Description (long)
Show details

Feed Extension

The Feed extension allows site administrators to include blog entries in the main content of templates using named references to atom or rss feeds.

Note: This extension requires ckan 1.7 or higher

Activating and Installing

To install the plugin, enter your virtualenv and load the source::

(pyenv)$ git install -e hg+https://github.com/okfn/ckanext-feedcontent#egg=ckanext-feedcontent

This will also register a plugin entry point, so you now should be able to add the following to your CKAN .ini file::

ckan.plugins = feed_content

At this point nothing will have happened! To add feeds to your system see below.

Running the tests

You can run the tests from the root of this repository with the following command

nosetests --ckan --with-pylons=test-core.ini ckanext/feedcontent/tests/

Using the Extension

Adding feeds

To add feeds to CKAN you should log on as a system administrator and then visit /feed/ from where you will be able to add a new feed or edit an existing one. When you need to update a feed you should visit /feed/ from where you will be able to view the feed to be updated and then press the update button.

Setting up the example

Go to the url of your CKAN instance, and go to /feed/ where you should add a new feed with a title of ‘ckan’ (without the quotes), a url of ‘http://ckan.org/feed’ and tick the HTML Entries checkbox.

Add the following line to your configuration

ckan.feed.demo = yes

Point your browser to the home page of your CKAN instance. This simple example shows in ckanext/feedcontent/templates/example/home.html how the feed items can be included.

Using feeds

To reference a feed and add an entry in a template you should use the feed_entry helper and provide it both the name of the feed (name, not title, is the one shown in the URL as a slug) and a regular expression for the title it should match.

In the following example it fetches (and renders) the entr

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)
feed_content
CKAN Settings (ckan.ini)
# ckan.feed.demo = yes
DB migration to be executed
(not set)
<< back to Extensions