Wiki source code of Layoutumschaltung via URL

Last modified by Carina Enke on 12.01.2024

Hide last authors
Moritz Baumgarten 27.1 1 Precondition is the existing theme configuration.
Carina Enke 7.1 2
Moritz Baumgarten 27.1 3 The URL based dependence of themes is to be configured in the file "extendedContext.xml".
4 Therefore add the following element to the bean (<bean id="themeModule" class="de.bps.olat.core.gui.themes.ThemeModule">):
Carina Enke 7.1 5
Carina Enke 21.1 6 {{code language="xml" title="Codeblock"}}
Carina Enke 7.1 7 <property name="urlBasedThemes">
Carina Enke 24.2 8 <map>
Moritz Baumgarten 27.1 9 <entry key="www.an-example-url.com/lms-path" value-ref="bean_id_of_an_existing_theme" />
10 <entry key="www.an-example-url.com/lms-path" value-ref="theme1" />
11 <entry key="www.an-example-url.com/lms-path" value-ref="theme2" />
Carina Enke 24.2 12 </map>
Carina Enke 7.1 13 </property>
14 {{/code}}