bloodhound-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Olemis Lang <ole...@gmail.com>
Subject Re: Use customized configuration variable in templates
Date Mon, 16 Jun 2014 03:38:51 GMT
BTW , *if* info may be added in header and footer then another thing
you could do is to use existing config options to customize the text
displayed in there.

HTH

On 6/15/14, Olemis Lang <olemis@gmail.com> wrote:
> Hi !
> :)
>
> Subclass BloodhoundTheme class and insert your new logic as needed
> (config option , template overrides , ...) . This is what we do in
> blood-hound.net to make quite a few features work the way we want it
> to .
> ;)
>
>
> On 6/15/14, Saint Germain <saintger@gmail.com> wrote:
>> Hello,
>>
>> I would like to insert a link to another website in the default
>> Bloodhound templates.
>>
>> However it would be best to have this website url defined in the
>> base.ini/trac.ini/site.ini files instead of hard coding it directly in
>> the templates.
>>
>> What would be the recommended way to achieve this ?
>>
>> Ideally I would like add a key 'another_site_url' to the [project] and
>> then use ${project.another_site_url} in the templates.
>> It seems to work by modifying directly populate_data in chrome.py but
>> perhaps there is more elegant/simple way to do that ?
>>
>> Thanks in advance,
>>
>
>
> --
> Regards,
>
> Olemis - @olemislc
>
> Apache(tm) Bloodhound contributor
> http://issues.apache.org/bloodhound
> http://blood-hound.net
>
> Blog ES: http://simelo-es.blogspot.com/
> Blog EN: http://simelo-en.blogspot.com/
>
> Featured article:
>


-- 
Regards,

Olemis - @olemislc

Apache(tm) Bloodhound contributor
http://issues.apache.org/bloodhound
http://blood-hound.net

Blog ES: http://simelo-es.blogspot.com/
Blog EN: http://simelo-en.blogspot.com/

Featured article:

Mime
View raw message