[ckan-dev] Packaging theme and model customisations

David Read david.read at okfn.org
Thu Feb 10 11:42:53 UTC 2011


Friedrich,

All this retheming is documented at http://wiki.ckan.net/Theming but I
think Seb's question is more about packaging up these configurations -
something James may have a view on.

I'd also like to hear why PackageExtras can't be used for this -
sounds like a tricky road to head down. Do tell!

David

On 10 February 2011 11:16, Friedrich Lindenberg
<friedrich.lindenberg at okfn.org> wrote:
> Hi Seb,
>
> in general: have a look at https://bitbucket.org/okfn/ckan-nl where
> Richard did a fantastic job of putting together a simple theme overlay
> for some basic pages (especially look at the way layout.html is used
> to override some things from layout_base.html). For a customization
> that includes a custom form and some plugins, see:
> https://bitbucket.org/okfn/ckanextiati
>
> On Thu, Feb 10, 2011 at 11:39 AM, Seb Bacon <seb.bacon at gmail.com> wrote:
>> 1) A template override for the homepage, with some custom functionality
>
> For the home page, overlay home/index.html
>
>> 2) Some local CSS (override layout_base.html?)
>
> I think there is a file called extras.css that CKAN looks for by
> default but thats not included in the clean install. Just create one
> and your rules will be looked at after the main style sheet.
>
>> 3) An extension to the package model (two extra fields which aren't
>> implemented with PackageExtras
>
> Wow, what do they do? Can they not be modelled in some way? Otherwise,
> serious monkey-patching of model/package will be in order. But,
> please, what are your reasons? (This sounds like a maintenance
> nightmare tbh)
>
>  Friedrich
>
>>
>> (I realise for (3) PackageExtras would probably be the way to go, but
>> for various reasons might not be practical in this case).
>>
>> Thanks
>>
>> Seb
>>
>> _______________________________________________
>> ckan-dev mailing list
>> ckan-dev at lists.okfn.org
>> http://lists.okfn.org/mailman/listinfo/ckan-dev
>>
>
> _______________________________________________
> ckan-dev mailing list
> ckan-dev at lists.okfn.org
> http://lists.okfn.org/mailman/listinfo/ckan-dev
>




More information about the ckan-dev mailing list