[ckan-dev] Metadata fields

Mark Wainwright mark.wainwright at okfn.org
Tue Dec 10 12:50:57 UTC 2013


As I understand, you don't need to use 'extras': you can write a
custom extension for your site which adds extra metadata fields of
your choosing and, if you like, also customise the forms to include
the new fields.

Hopefully someone else can provide details ...

Mark


On 05/12/2013, Stefan Oderbolz <stefan.oderbolz at liip.ch> wrote:
> Hi Mark,
>
> yes you can add arbitrary fields using the so called "extras".
> The predefined metadata fields are listed here:
> https://github.com/okfn/ckan/blob/master/ckan/logic/schema.py#L63
> They used to be in the docs, see e.g. for CKAN 1.8:
> http://docs.ckan.org/en/ckan-1.8/domain-model-dataset.html, but I can't
> find this page in the latest docs anymore.
>
> So apart from all the predefined fields, the "extras" may contain any
> key/value pair, which allows you to store whatever you want.
>
> Regards Stefan
>
>
>
> On Thu, Dec 5, 2013 at 1:13 PM, Mark Brady - NOAA Federal <
> mark.brady at noaa.gov> wrote:
>
>> Here is a very basic question.  Is it possible to set up an instance
>> of CKAN with any number of custom metadata fields or is one restricted
>> to the use a predefined fields?
>>
>> -Mark
>> _______________________________________________
>> ckan-dev mailing list
>> ckan-dev at lists.okfn.org
>> http://lists.okfn.org/mailman/listinfo/ckan-dev
>> Unsubscribe: http://lists.okfn.org/mailman/options/ckan-dev
>>
>
>
>
> --
> Liip AG  //  Feldstrasse 133 //  CH-8004 Zurich
> Tel +41 43 500 39 80 // GnuPG 0x7B588C67 // www.liip.ch
>


-- 
Business development and user engagement manager
The Open Knowledge Foundation
Empowering through Open Knowledge
http://okfn.org/  |  @okfn  |  http://ckan.org  |  @CKANproject



More information about the ckan-dev mailing list