[ckan-dev] Installing extensions on Czech CKAN
david.read at okfn.org
Tue Oct 4 12:46:37 BST 2011
2011/10/3 Ondřej Vadinský <ondrej.vadinsky at vse.cz>
> we'd like to have an extension for multilingual content on Czech CKAN. It
> should be provided by hrifi . I derived following installing process
> the documentation (didn't quite get what the documentation said):
> in /etc/ckan/cz activate pyenv: . pyenv/bin/activate
> install extension: pip install -E ./pyenv/ hg+
> add ckan.forms = package_hrifi possible with ckan.plugins = hrifi for a
> of okfn version to cz.ini
> restart the apache
> The page loads ok, though I do not see any change, when going through it.
> I install exampletheme extension, the page somewhat changes, so I guess my
> installation procedure works.
> What could be the problem? Is some more configuration needed?
The short story is: it's best not to use this extension - it is not what you
want and out of date. But you can use its principles and customise the
package edit form for storing data fields in multiple languages.
The long story:
You have installed this extension successfully with pip and the config
options look fine.
This extension is a customisation of CKAN designed for a Helsinki project.
There are some visual templates and the custom form.
The form contains particular fields twice, to provide for two languages. I
think this concept is what interests you, but you probably don't want the
rest, such as the geographic_coverage option list covering parts of
The HRI form is based on FormAlchemy, which is what we used for forms up
until CKAN 1.4.1 which came out in June. You can still use these forms, but
there is a small hack required - see something similar here:
But I suggest you simply customise your form yourself. House it in a new
extension, copy the default package form HTML and NAVL schema and edit it
away, adding additional fields for translations as you see fit - maybe only
title and description need the translation. Instructions to get you started
http://readthedocs.org/docs/ckan/en/latest/forms.html There is not much here
about the navl schema, so if you get lost, do ask again and we'll gladly
help. All the best,
> Ondřej Vadinský
>  https://bitbucket.org/okfn/ckan-hrifi/overview
> ckan-dev mailing list
> ckan-dev at lists.okfn.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the ckan-dev