Wiki-Quellcode von Layoutumschaltung via URL

Version 16.1 von Carina Enke am 04.07.2018

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