Wiki-Quellcode von Layoutumschaltung via URL

Version 10.1 von Carina Enke am 10.12.2019

Verstecke letzte Bearbeiter
Carina Enke 7.1 1 {{sv-translation language="de"}}
2 {{layout}}
3 {{layout-section ac:type="single"}}
4 {{layout-cell}}
Carina Enke 9.1 5
6
7 {{details}}
8 |=(((
9 Verantwortlicher
10 )))|(((
11
12 )))
13 |=(% colspan="1" %)(% colspan="1" %)
14 (((
15 Status
16 )))|(% class="highlight-yellow" colspan="1" data-highlight-colour="yellow" %)(% class="highlight-yellow" colspan="1" data-highlight-colour="yellow" %)
17 (((
18 {{sv-metadata type="workflow-status"/}}
19
20 {{status colour="Green" title="Fertig"/}}
21 )))
22 |=(% colspan="1" %)(% colspan="1" %)
23 (((
24 Varianten
25 )))|(% colspan="1" %)(% colspan="1" %)
26 (((
27 {{sv-metadata type="variants"/}}
28 )))
29 |=(% colspan="1" %)(% colspan="1" %)
30 (((
31 Attribute
32 )))|(% colspan="1" %)(% colspan="1" %)
33 (((
34 {{sv-metadata type="attributes"/}}
35 )))
36 |=(% colspan="1" %)(% colspan="1" %)
37 (((
38 Pagekey
39 )))|(% colspan="1" %)(% colspan="1" %)
40 (((
41 {{sv-metadata type="pagekey"/}}
42 )))
43 |=(% colspan="1" %)(% colspan="1" %)
44 (((
45 Übersetzung
46 )))|(% colspan="1" %)(% colspan="1" %)
47 (((
48 {{status colour="Green" title="Fertig"/}}
49 )))
50 |=(% colspan="1" %)(% colspan="1" %)
51 (((
52 TODOs
53 )))|(% colspan="1" %)(% colspan="1" %)
54 (((
55
56 )))
57 {{/details}}
Carina Enke 7.1 58 {{/layout-cell}}
59 {{/layout-section}}
60
61 {{layout-section ac:type="single"}}
62 {{layout-cell}}
63 Voraussetzung ist die vorhandene Konfiguration der Themes
64
65 Die URL-abhängigkeit der Themes wird in der "extendedContext.xml" konfiguriert.
66 Dazu muss der Bean (<bean id="themeModule" class="de.bps.olat.core.gui.themes.ThemeModule">) folgendes Element hinzugefügt werden:
67
68 {{code language="xml" title="Codeblock"}}
69 <property name="urlBasedThemes">
70 <map>
71 <entry key="www.eine-beispiel-url.de/lms-pfad" value-ref="bean_id_eines_vorhandenen_Themes" />
72 <entry key="www.eine-beispiel-url.de/lms-pfad" value-ref="Theme1" />
73 <entry key="www.eine-beispiel-url.de/lms-pfad" value-ref="Theme2" />
74 </map>
75 </property>
76 {{/code}}
77 {{/layout-cell}}
78 {{/layout-section}}
79 {{/layout}}
80 {{/sv-translation}}
81
82 {{sv-translation language="en"}}
83
84
85 Precondition is the existing theme configuration.
86
87 The URL based dependence of themes is to be configured in the file "extendedContext.xml".
88 Therefore add the following element to the bean (<bean id="themeModule" class="de.bps.olat.core.gui.themes.ThemeModule">):
89
90 {{code language="xml" title="Codeblock"}}
91 <property name="urlBasedThemes">
92 <map>
93 <entry key="www.an-example-url.com/lms-path" value-ref="bean_id_of_an_existing_theme" />
94 <entry key="www.an-example-url.com/lms-path" value-ref="theme1" />
95 <entry key="www.an-example-url.com/lms-path" value-ref="theme2" />
96 </map>
97 </property>
98 {{/code}}
99 {{/sv-translation}}