[ckan-dev] Customizing

mehdi benchoufi benchoufi.mehdi at gmail.com
Thu Sep 20 08:27:15 UTC 2012


Great thanks Toby, it worked just fine !

Best,
Mehdi

2012/9/19 Toby Dacre <toby.okfn at gmail.com>

>
>
> On 19 September 2012 13:12, mehdi benchoufi <benchoufi.mehdi at gmail.com>wrote:
>
>> Hi Toby,
>>
>> So if you mean an absolute path, this what I did, but it doesn't work
>>
>>
>  %(here)s/ckan/my-publicis relative to the ini file and recommended
>
> ckan.site_logo = /images/logo-club-jade.png
>
> should be what you want as this is the path on the website (assuming your
> site root is /)
>
> Toby
>
>
> Best,
>> Mehdi
>>
>>
>>
>> 2012/9/19 Toby Dacre <toby.okfn at gmail.com>
>>
>>>
>>>
>>> On 19 September 2012 12:44, mehdi benchoufi <benchoufi.mehdi at gmail.com>wrote:
>>>
>>>> Hi,
>>>>
>>>> As far as I remember, I instatlled it from "git+
>>>> https://github.com/okfn/ckan.git#egg=ckan" ()but I ma ot a hundred
>>>> percent sure, if it isn't then it was from :  git+
>>>> https://github.com/okfn/ckan.git@ckan-1.7#egg=ckan
>>>>
>>>> To summarize, developement.ini, the setup file and who.ini are in
>>>> ~/pyenv/src/ckan
>>>>
>>>> In ~/pyenv/src/ckan/ckan, I can found my "templates" folder and the
>>>> "my-public" folder, so the logo is in
>>>> ~/pyenv/src/ckan/ckan/my-public/images
>>>>
>>>> So in development.ini, I put these lines :
>>>> extra_public_paths = ~/pyenv/src/ckan/ckan/my-public
>>>> ckan.site_logo
>>>> =~/pyenv/src/ckan/ckan/my-public/images/logo-club-jade.png (in the
>>>> inspector, this very path appears as src in the img tag)
>>>>
>>>> Is that sufficient as an info ?
>>>>
>>>> I would advise agains using ~/ as it is dependent on the user
>>> use  %(here)s/ckan/my-public etc
>>>
>>>> Best, Mehdi
>>>>
>>>>
>>>>
>>>>
>>>>
>>>> 2012/9/19 Sean Hammond <sean.hammond at okfn.org>
>>>>
>>>>> > I am trying to customize my templates. So first, for the logo, I
>>>>> added
>>>>> > as extra_public_paths
>>>>> > a personal folder (as an absolute path) and then I added in it an
>>>>> image
>>>>> > folder and put my logo there and then specified as ckan.site_logo
>>>>> exactly
>>>>> > /images/mylogo.png (I also tried to reference the path as an
>>>>> absolute one).
>>>>> > But the site doesn't display anything. I think there is a path
>>>>> issue. Could
>>>>> > you help me clarify the situation ?
>>>>>
>>>>> It sounds like you did the right thing. What version of CKAN are you
>>>>> using? I'll test and see if it works for me
>>>>>
>>>>> _______________________________________________
>>>>> 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
>>>>
>>>>
>>>
>>> _______________________________________________
>>> 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
>>
>>
>
> _______________________________________________
> ckan-dev mailing list
> ckan-dev at lists.okfn.org
> http://lists.okfn.org/mailman/listinfo/ckan-dev
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.okfn.org/pipermail/ckan-dev/attachments/20120920/07cc1eec/attachment-0001.html>


More information about the ckan-dev mailing list