Dear Indico community,
One of our event managers asked why they can upload a custom stylesheet for a conference but not for a lecture or a meeting. We run Indico built from source, currently 3.3.15.dev0.
From the code, the upload only exists for conferences. RHLayoutEdit._process_conference() builds the CSSForm and the “Use custom CSS” switch. _process_lecture_meeting() only offers LectureMeetingLayoutForm, which has just the timetable theme selector. Lecture and meeting pages get their CSS from the selected theme in themes.yaml.
I have three questions:
- Is leaving the upload out for lectures and meetings deliberate, or did nobody need it so far?
- What do you recommend for institute-specific styling of meetings and lectures? A theme plugin using
get_event_themes_files(likethemes_legacy), or global CSS inCUSTOMIZATION_DIR/css? As far as I can see, global CSS can’t target a single event, because<body>has no event ID or event-type class. - If a theme plugin is the right way, can its theme definitions reuse the core templates (e. g. template:
indico/meeting.html) and only swap the stylesheet? Or does the plugin have to ship its own templates?
If there’s interest in a per-event upload for all event types, I’d be happy to work on a merge/pull request. Do you see any problems with that?
Kind regards,
Paul