Wiki source code of Layoutumschaltung via URL
Last modified by Carina Enke on 12.01.2024
Show last authors
| author | version | line-number | content |
|---|---|---|---|
| 1 | Precondition is the existing theme configuration. | ||
| 2 | |||
| 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">): | ||
| 5 | |||
| 6 | {{code language="xml" title="Codeblock"}} | ||
| 7 | <property name="urlBasedThemes"> | ||
| 8 | <map> | ||
| 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" /> | ||
| 12 | </map> | ||
| 13 | </property> | ||
| 14 | {{/code}} |