Theme customization not working

Hi!

We are testing Indico 2.0.2.

I would like to make some changes to the footer.html, but it doesn’t accept any customizations.

I’ve set the following in indico.conf:

CUSTOMIZATION_DIR  = '/opt/indico/custom'
LOGO_URL = 'https://xxx.xxx.xx.de/images/logo.svg'
CUSTOMIZATION_DEBUG = True

(LOGO_URL does work)

In /opt/indico/custom I’ve created the folder “core” and added a “footer.html”:

root@indico:/opt/indico/custom/core# ls -al
insgesamt 12
drwxr-xr-x 2 indico www-data 4096 Mär 15 15:48 .
drwxr-xr-x 4 indico www-data 4096 Mär 15 15:22 ..
-rw-r--r-- 1 indico www-data  173 Mär 15 15:48 footer.html

The content of the file “footer.html” looks like this (just for testing :wink: ):

root@indico:/opt/indico/custom/core# cat footer.html
{% extends '~footer.html' %}

{% block footer_logo %}
    <span> Fooooooooooooooooooooooooooooooooooo </span>
{% endblock %}

The problem is, it just doesn’t work (I’ve restarted Indico, of course).

What am I missing? Or is this a bug?

Regards
Tobias

You need /opt/indico/custom/templates/core/.. instead of /opt/indico/custom/core/...

THANK YOU!!!

Now it works. May I suggest to add this to the docs? :slightly_smiling_face:

Regards
Tobias

https://docs.getindico.io/en/stable/config/settings/#CUSTOMIZATION_DEBUG

Whether to log details for all customizable templates the first time they are accessed. The log message contains the path where you need to store the template; this path is relative to <CUSTOMIZATION_DIR>/templates/.

It’s there :wink:

I need new glasses… :scream:

I’m feeling a bit stupid now… :wink: