Layout Switch by URL
Last modified by Carina Enke on 12.01.2024
Precondition is the existing theme configuration.
The URL based dependence of themes is to be configured in the file "extendedContext.xml".
Therefore add the following element to the bean (<bean id="themeModule" class="de.bps.olat.core.gui.themes.ThemeModule">):
Codeblock
<property name="urlBasedThemes">
<map>
<entry key="www.an-example-url.com/lms-path" value-ref="bean_id_of_an_existing_theme" />
<entry key="www.an-example-url.com/lms-path" value-ref="theme1" />
<entry key="www.an-example-url.com/lms-path" value-ref="theme2" />
</map>
</property>
<map>
<entry key="www.an-example-url.com/lms-path" value-ref="bean_id_of_an_existing_theme" />
<entry key="www.an-example-url.com/lms-path" value-ref="theme1" />
<entry key="www.an-example-url.com/lms-path" value-ref="theme2" />
</map>
</property>