[ckan-dev] Adding new content type in extension

Denis Zgonjanin deniszgonjanin at gmail.com
Sun Jun 21 18:56:51 UTC 2015


Hi Alan,

ckanext-featuredviews does something similar - it let's you embed CKAN 2.3
Resource Views onto the front page

https://github.com/deniszgonjanin/ckanext-featuredviews

You can look at that code for some pointers, it's not a very large extension

- Denis

On Sun, Jun 21, 2015 at 7:28 AM, Alan Tygel <alantygel at gmail.com> wrote:

> Hi,
>
> I'm developing a open data portal about pesticides in Brazil here:
> http://dados.contraosagrotoxicos.org/
>
> The first thing that I missed in CKAN is a way of easily bringing data
> highlights to the front page, and linking these highlight to a dataset.
>
> As you can see, I developed an extension that writes some imporant figure
> in the front page, and links to the resource that generated it.
>
> I created a controller that randonly throws the numbers, but it is
> hardcoded.
>
> What would be the best way of creating a new class (FeaturedNumber), with
> some attributes (number, descritption, link to resource), associating with
> database, create an insert / edit /remove interface, etc?
>
> I guess I could do it by myself, but I would like to first hear from you
> the better direction to follow, as there is nothing similar in ckan (as far
> as I know)!
>
> thanks in advance,
> alan
>
> --
> Programa de Pós-Graduação em Informática - PPGI/UFRJ
> EITA - Educação, Informação e Tecnologias para Autogestão
> Núcleo de Solidariedade Técnica - Soltec/UFRJ <http://www.soltec.ufrj.br>
> http://www.cirandas.net/alantygel
> http://www.contraosagrotoxicos.org
>
> _______________________________________________
> ckan-dev mailing list
> ckan-dev at lists.okfn.org
> https://lists.okfn.org/mailman/listinfo/ckan-dev
> Unsubscribe: https://lists.okfn.org/mailman/options/ckan-dev
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.okfn.org/pipermail/ckan-dev/attachments/20150621/9d63e174/attachment-0003.html>


More information about the ckan-dev mailing list