Good day.
Is it possible to edit the file
/opt/indico/src/indico/modules/events/templates/display/indico/meeting.html
as well as
/opt/indico/src/indico/web/templates/header.html
->/opt/indico/custom/templates/core/header.html
(>grep CUSTOMIZATION_DIR /opt/indico/etc/indico.conf
CUSTOMIZATION_DIR=‘/opt/indico/custom’
)
Thank you!
Sure. Using CUSTOMIZATION_DEBUG
would be the easiest way to see the exact path needed to override that template using customizations.
I think .../core/events/timetable/display/indico/meeting.html
is the correct path for it, but I haven’t tested that.
PS: You seem to have a non-standard setup (src
does not belong on a prod setup).
Ok! It is work! Thank you!
Folder “src” have downloaded for “manuals”.
/opt/indico/log/indico.log have not error
PS:
1:
/opt/indico/custom/templates/core/events/timetable/display/indico/meeting.html
2:
more /opt/indico/custom/templates/core/events/timetable/display/indico/meeting.html
{% extends ‘~events/timetable/display/indico/meeting.html’ %}
{% block header %}
…
{% endblock %}
ThiefMaster, to order to add some word to block ‘h1 itemprop=“name”’ Title Events ‘/h1’ required another file?
Thank you)
ThiefMaster, thank you! It is work!
Task
Add string to template block for all indico events:
<h1 itemprop="name">
{{- event.title -}}
{{- event.get_label_markup() -}}
</h1>
Solving
Base file:
/opt/indico/.venv/lib/python3.10/site-packages/indico/modules/events/timetable/templates/display/indico/meeting.html
Custom file;
/opt/indico/custom/core/events/display/indico/meeting.html
{% extends '~events/display/indico/meeting.html' %}
{% block header %}
...
<h1 itemprop="name">
<Custom string>
{{- event.title -}}
{{- event.get_label_markup() -}}
</h1>
...
{% endblock %}
Help file, very useful, special thanks:
/opt/indico/log/indico.log
$ tail -f /opt/indico/log/indico.log
...
2023-03-13 09:55:08,430 DEBUG 32f6360a35cb46b0 1 indico.customization Customizable: core/events/display/indico/meeting.html (original: /opt/indico/.venv/lib/python3.10/site-packages/indico/modules/events/templates/display/indico/meeting.html, reference: ~events/display/indico/meeting.html)
...```
PS:
$ grep CUSTOM /opt/indico/etc/indico.conf
CUSTOMIZATION_DIR='/opt/indico/custom'
CUSTOMIZATION_DEBUG=True