[ckan-discuss] Customizing ckan - featured section

Aaron McGlinchy McGlinchyA at landcareresearch.co.nz
Wed Sep 11 03:18:50 BST 2013


Related question, how do you specify the section to be featured on the home page. I've searched the documentation for featured section and it doesn't bring up anything relevant.
Thanks

-----Original Message-----
From: ckan-discuss-bounces at lists.okfn.org [mailto:ckan-discuss-bounces at lists.okfn.org] On Behalf Of ckan-discuss-request at lists.okfn.org
Sent: Wednesday, 11 September 2013 9:55 a.m.
To: ckan-discuss at lists.okfn.org
Subject: ckan-discuss Digest, Vol 44, Issue 8

Send ckan-discuss mailing list submissions to
        ckan-discuss at lists.okfn.org

To subscribe or unsubscribe via the World Wide Web, visit
        http://lists.okfn.org/mailman/listinfo/ckan-discuss
or, via email, send a message with subject or body 'help' to
        ckan-discuss-request at lists.okfn.org

You can reach the person managing the list at
        ckan-discuss-owner at lists.okfn.org

When replying, please edit your Subject line so it is more specific than "Re: Contents of ckan-discuss digest..."


Today's Topics:

   1. Customizing ckan (Javier Coque Garcia)
   2. Query about DataStore API - datastore_search_sql, API key of
      sysadmin required (Joel Natividad)
   3. Re: Customizing ckan (Anton Lundin)
   4. DataHub (Ross Jones)
   5. Re: [ckan-dev] Blog post on using CKAN for research       data
      (Irina Bolychevsky)


----------------------------------------------------------------------

Message: 1
Date: Tue, 10 Sep 2013 13:52:06 +0200
From: Javier Coque Garcia <coque_losel at hotmail.com>
Subject: [ckan-discuss] Customizing ckan
To: "ckan-discuss at lists.okfn.org" <ckan-discuss at lists.okfn.org>
Message-ID: <DUB116-W1291E775F490A38AA34C66284380 at phx.gbl>
Content-Type: text/plain; charset="iso-8859-1"

Hi! I am customizing my ckan. Where it appears "This is a featured section", I would like to show a image. I wrote in the development.ini:

ckan.template_footer_end = <style type="text/css">

    .media-image a { background-image : url("base/images/photo.jpg");}

  </style>

but it doesn't appear any image. How can I fix it?

cheers.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.okfn.org/pipermail/ckan-discuss/attachments/20130910/cb39b176/attachment-0001.htm>

------------------------------

Message: 2
Date: Tue, 10 Sep 2013 10:05:38 -0400
From: Joel Natividad <joel.natividad at ontodia.com>
Subject: [ckan-discuss] Query about DataStore API -
        datastore_search_sql,   API key of sysadmin required
To: ckan-discuss at lists.okfn.org
Message-ID:
        <CAGdOJWE9hA2BstpJegcO=9=KFfsSMh+n4M0e3RTbQq-XvOajSA at mail.gmail.com>
Content-Type: text/plain; charset="iso-8859-1"

Hi Folks!
Looking forward to OKCon.  Sami and I are both ready and have even figured out how to multiplex the different tracks next week :)

As luck would have it, we're also launching the a CKAN portal next week for one of our clients.

We've assembled a localized tutorial using their cleaned, normalized, linked data.

However, it seems that we can't do datastore_search_sql call unless the API key is that of a sysadmin.  When we use an API key for a "normal" CKAN user, I get an authorization error.

And yes, we did check that the datasets are public.

Any hints?
Thanks,
Joel
--
Joel Natividad
+1 347-565-5635
@jqnatividad

Ontodia, Inc.
137 Varick Street, 2nd Floor
New York, NY 10013
pediacities.com * nycpedia.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.okfn.org/pipermail/ckan-discuss/attachments/20130910/3337be5b/attachment-0001.htm>

------------------------------

Message: 3
Date: Tue, 10 Sep 2013 16:08:26 +0200
From: Anton Lundin <anton at dohi.se>
Subject: Re: [ckan-discuss] Customizing ckan
To: Javier Coque Garcia <coque_losel at hotmail.com>
Cc: "ckan-discuss at lists.okfn.org" <ckan-discuss at lists.okfn.org>
Message-ID: <20130910140825.GL27177 at imakken>
Content-Type: text/plain; charset="utf-8"

On 10 September, 2013 - Javier Coque Garcia wrote:

> Hi! I am customizing my ckan. Where it appears "This is a featured section", I would like to show a image. I wrote in the development.ini:
>
> ckan.template_footer_end = <style type="text/css">
>
>     .media-image a { background-image : url("base/images/photo.jpg");}
>
>   </style>
>
> but it doesn't appear any image. How can I fix it?
>
> cheers.

Hi.

We don't use the ckan.template_footer_end, we use the "Custom CSS"
feature in /ckan-admin/config panel and to restyle that area we run something like:

/* Remove the feature image */
div.hero-primary section.featured.media-overlay {
display: none;
}
/* Style up fron page */
div.hero-primary header {
background-image: url(http://url-to-image/image.jpg);
background-size: cover;
background-repeat: no-repeat;
background-position: center;
height: 59px;
padding-top: 42px;
padding-bottom: 42px;
border-radius: 3px;
}


The height and padding is so that it aligns nice with the "Search Your Data" box to the right.

The whole styling is we use is documented at:
https://github.com/openumea/openumea-deployment/blob/master/CKAN-2.1-THEMING.txt
and you can have a look at the result at http://openumea.se/


//Anton


--
Anton Lundin

anton at dohi.se

http://www.dohi.se/



------------------------------

Message: 4
Date: Tue, 10 Sep 2013 17:37:50 +0100
From: Ross Jones <ross at servercode.co.uk>
Subject: [ckan-discuss] DataHub
To: "ckan-discuss at lists.okfn.org discuss"
        <ckan-discuss at lists.okfn.org>
Message-ID: <72EAD028-A0C8-4180-B388-194179193F02 at servercode.co.uk>
Content-Type: text/plain; charset="windows-1252"

Hi All,

TL;DR: changes are afoot for the DataHub. Following the recent (technical) upgrade its time for a community upgrade. New dedicated DataHub mailing lists and call for contributors to new DataHub team.

We?re writing to give an important update on the DataHub - the community data hub powered by CKAN we?ve been running since 2006!

Over the last year or so DataHub has not kept up with the speed of change that has been happening within CKAN itself.  As a result it hasn?t received as much attention as it should, and we feel it is high time to bring DataHub up to date and make it the awesome community owned and run  data hub it can and should be!

DataHub is and will remain community run, and community owned, and will have a solid technical home within the Open Knowledge Foundation Labs. However, if the DataHub is to meet the needs and expectations of those using it we need to create a team of administrators, curators, developers and more - so we need your help!

There are lots of ways to get involved.  We will need help with advocacy, triaging ideas and issues [2],  and writing code [3].  To help coordinate this we have created two new mailing lists dedicated to the DataHub, datahub-discuss [4] for those who want to get involved in helping take the datahub forward and datahub-announce [5] for announcements.[^1]

Ross Jones and Rufus Pollock
DataHub Benevolent Dictators (Interim!)

[2] http://github.com/okfn/ckanext-datahub/issues
[3] https://github.com/okfn/ckanext-datahub
[4] http://lists.okfn.org/mailman/listinfo/datahub-discuss
[5] http://lists.okfn.org/mailman/listinfo/datahub-announce

[^1] With the growth of the DataHub and CKAN it is now time for the DataHub to have its own dedicated space and community - there are now hundreds of CKAN instances whereas once upon time there was only one: ckan.net (We renamed ckan.net to datahub.io in 2011 to avoid confusion between CKAN (the software) and the website!)

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.okfn.org/pipermail/ckan-discuss/attachments/20130910/1f10d3bd/attachment-0001.htm>

------------------------------

Message: 5
Date: Tue, 10 Sep 2013 22:54:47 +0100
From: Irina Bolychevsky <irina.bolychevsky at okfn.org>
Subject: Re: [ckan-discuss] [ckan-dev] Blog post on using CKAN for
        research        data
To: CKAN Development Discussions <ckan-dev at lists.okfn.org>
Cc: CKAN discuss <ckan-discuss at lists.okfn.org>,
        ckan4rdm at lists.okfn.org
Message-ID:
        <CAFNysOxiteutt1zT0V4qAeERMXLxRE=MVYmTibcsYofNYO8p-A at mail.gmail.com>
Content-Type: text/plain; charset="iso-8859-1"

Thank you Ian, Hendrik,

I've added some quick notes to our roadmap here:
https://trello.com/c/VinbHQia/115-better-metadata-schema-support - please feel free to comment or suggest edits. I think we also want to add support to get popular schema's "off the shelf" so to speak. Will add this to the agenda for the next product dev meeting. Do you have time to work on this now/soon?  - I think we'd be happy to help comment / contribute to a spec.

Best,
Irina

**

*Irina Bolychevsky*

*Government Open Data & CKAN Manager  |  skype: flouxi  |  twitter:
@shevski<http://twitter.com/shevski>
*

*The Open Knowledge Foundation <http://okfn.org/>*

*Empowering through Open Knowledge*

*http://okfn.org/  |  @okfn <http://twitter.com/OKFN>  |  OKF on Facebook<https://www.facebook.com/OKFNetwork> | Blog <http://blog.okfn.org/>  |  Newsletter<http://okfn.org/about/newsletter>
*
*
CKAN | http://ckan.org | @ckanproject <http://twitter.com/ckanproject>
|open source data management platform
*



On 5 September 2013 09:46, Hendrik Bunke <h.bunke at zbw.eu> wrote:

> Hi Irina,
>
> On 4 September 2013 14:56, Irina Bolychevsky
> <irina.bolychevsky at okfn.org>
>  wrote:
>
>>
>> This is a great post. Really detailed, interesting and a good intro
>> to working with CKAN. Would you be interested in us reposting it on
>> the CKAN blog?
>>
>
> I'm glad you like the post, and EDaWaX (and me) would be honored if
> you repost it in the CKAN blog. We'd just like you to put our logo (
> http://134.245.93.76/wp-content/uploads/2011/10/edawax_logo.png)
> somewhere. Would that be OK?
>
>
>> I would also be interested to know how we can improve the metadata
>> schema support. Maybe something that can be added to the roadmap<https://trello.com/board/roadmap/50b4ef4201d86a1603002077>?
>> Or we can help you in developing.
>>
>
> Regarding metadata Ian already gave an important hint. We'd need some
> abstraction level or framework in CKAN that simplifies the
> implementation of custom metadata schemes. At the moment there are too
> many points an extensions has to hook in (templates, forms,
> validation...). That would also be a good foundation for a more
> longterm project (or perhaps dream
> ;-): all available metadata schemas (DDI; DataCite, da|ra, whatever)
> are published in XML (as XML Schema usually). I'd like to derive CKAN
> metadata fields directly from those schemas. At the moment I don't
> have the time to do that, but I will certainly try within in the next
> six month to start that exemplary for the da|ra schema. And, of
> course, it would be great to have more dev support for this.
>
> best regards
> hendrik
>
> --
> Dr. Hendrik Bunke
> ZBW - Deutsche Zentralbibliothek f?r Wirtschaftswissenschaften
> Innovative Informations- und Publikationstechnologien (IIPT)
> Tel.: +49 40 42834 454 (Hamburg) OR +49 421 7940430 (homeoffice)
> http://zbw.eu
>
> _______________________________________________
> 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
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.okfn.org/pipermail/ckan-discuss/attachments/20130910/ec7a9930/attachment.htm>

------------------------------

_______________________________________________
ckan-discuss mailing list
ckan-discuss at lists.okfn.org
http://lists.okfn.org/mailman/listinfo/ckan-discuss
Unsubscribe: http://lists.okfn.org/mailman/optionss/ckan-discuss


End of ckan-discuss Digest, Vol 44, Issue 8
*******************************************

________________________________

Please consider the environment before printing this email
Warning: This electronic message together with any attachments is confidential. If you receive it in error: (i) you must not read, use, disclose, copy or retain it; (ii) please contact the sender immediately by reply email and then delete the emails.
The views expressed in this email may not be those of Landcare Research New Zealand Limited. http://www.landcareresearch.co.nz



More information about the ckan-discuss mailing list