[ckan-dev] Changing site title on extension

Pedro G Silva pedro.gracio at deimos.com.pt
Thu Mar 3 15:16:19 UTC 2016


Hi All
I'm trying to make a theming extension and I want to automatically set the
site title and logo, but I'm failing to do that. Can someone help me?
Perhaps I'm using the wrong method?

This is what I'm trying:

    def update_config(self, config_):
        toolkit.add_template_directory(config_, 'templates')
        toolkit.add_public_directory(config_, 'public')
        toolkit.add_resource('fanstatic', 'snimartheme')

        config['ckan.site_title'] = 'CHANGED'


-- 


[image: DEIMOS Engenharia, SA] <http://www.deimos.pt>
*Pedro Gracio Silva*
Aerospace Systems / Production Center

*Av. D. Joao II, Lt 1.17.01, 10 • 1998-023 Lisboa, Portugal*
Ph: +351 21 893 3020 • Fax: +351 21 896 9099
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.okfn.org/pipermail/ckan-dev/attachments/20160303/db19bdee/attachment-0002.html>


More information about the ckan-dev mailing list