geosolutions-it/ckanext-pages

Name: ckanext-pages

Owner: GeoSolutions

Description: simple cms

Created: 2015-10-16 09:58:09.0

Updated: 2015-10-16 09:58:10.0

Pushed: 2015-10-19 09:59:49.0

Homepage: null

Size: 1172

Language: JavaScript

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

Build Status Coverage Status

ckanext-pages

This extension gives you an easy way to add simple pages to CKAN.

By default you can add pages to the main CKAN menu.

Works for ckan>=2.3

Installation

Use pip to install this plugin. This example installs it in /home/www-data/pyenv, assuming you have setup a virtualenv there:

ce /home/www-data/pyenv/bin/activate
install -e 'git+https://github.com/ckan/ckanext-pages.git#egg=ckanext-pages'

Make sure to add pages to ckan.plugins in your config file:

.plugins = pages
Configuration

Extra config options allow you to control the creation of extra pages against groups and organizations.

To swich on this behaviour, to your config add:

ext.pages.organization = True
ext.pages.group = True

These options are False by default and this feature is experimental.

This module also gives you a quick way to remove default elements from the CKAN menu and you may need todo this in order for you to have space for the new items you add. These options are:

ext.pages.about_menu = False
ext.pages.group_menu = False
ext.pages.organization_menu = False

By default these are all set to True, like on a default install.

To enable HTML output for the pages (along with Markdown), add the following to your config:

ext.pages.allow_html = True

By default this option is set to False. Note that this feature is only available for CKAN >= 2.3. For older versions of CKAN, this option has no effect. Use this option with care and only allow this if you trust the input of your users.

If you want to use the WYSIWYG editor instead of Markdown:

ext.pages.editor = medium

or

ext.pages.editor = ckeditor

This enables either the medium or ckeditor

Dependencies

This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.