Wiki-Quellcode von Layoutumschaltung via URL
Version 25.5 von Carina Enke am 15.01.2024
Verstecke letzte Bearbeiter
| author | version | line-number | content |
|---|---|---|---|
![]() |
21.1 | 1 | {{layout}} |
| 2 | {{layout-section ac:type="single"}} | ||
| 3 | {{layout-cell}} | ||
![]() |
7.1 | 4 | Voraussetzung ist die vorhandene Konfiguration der Themes |
| 5 | |||
| 6 | Die URL-abhängigkeit der Themes wird in der "extendedContext.xml" konfiguriert. | ||
| 7 | Dazu muss der Bean (<bean id="themeModule" class="de.bps.olat.core.gui.themes.ThemeModule">) folgendes Element hinzugefügt werden: | ||
| 8 | |||
![]() |
21.1 | 9 | {{code language="xml" title="Codeblock"}} |
![]() |
7.1 | 10 | <property name="urlBasedThemes"> |
![]() |
24.2 | 11 | <map> |
| 12 | <entry key="www.eine-beispiel-url.de/lms-pfad" value-ref="bean_id_eines_vorhandenen_Themes" /> | ||
| 13 | <entry key="www.eine-beispiel-url.de/lms-pfad" value-ref="Theme1" /> | ||
| 14 | <entry key="www.eine-beispiel-url.de/lms-pfad" value-ref="Theme2" /> | ||
| 15 | </map> | ||
![]() |
7.1 | 16 | </property> |
| 17 | {{/code}} | ||
![]() |
21.1 | 18 | {{/layout-cell}} |
| 19 | {{/layout-section}} | ||
| 20 | {{/layout}} | ||
| 21 | |||
![]() |
23.1 | 22 | |
![]() |
24.1 | 23 | |
![]() |
21.1 | 24 | |
| 25 | Precondition is the existing theme configuration. | ||
| 26 | |||
| 27 | The URL based dependence of themes is to be configured in the file "extendedContext.xml". | ||
| 28 | Therefore add the following element to the bean (<bean id="themeModule" class="de.bps.olat.core.gui.themes.ThemeModule">): | ||
| 29 | |||
| 30 | {{code language="xml" title="Codeblock"}} | ||
| 31 | <property name="urlBasedThemes"> | ||
![]() |
24.2 | 32 | <map> |
| 33 | <entry key="www.an-example-url.com/lms-path" value-ref="bean_id_of_an_existing_theme" /> | ||
| 34 | <entry key="www.an-example-url.com/lms-path" value-ref="theme1" /> | ||
| 35 | <entry key="www.an-example-url.com/lms-path" value-ref="theme2" /> | ||
| 36 | </map> | ||
![]() |
21.1 | 37 | </property> |
| 38 | {{/code}} |
