Wiki source code of Institutionsportlet

Last modified by Moritz Baumgarten on 10.01.2024

Show last authors
1
2
3 (% class="MsoBodyText" %)
4 Only the institution's administrators as well as system administrators can customise the content of the portlet **//My Institution//**//.// 
5
6 {{expand title="Edit institution portlet ..."}}
7 To edit the content of the portlet //**My Institution**//, proceed as follows:
8
9 |(% class="numberingColumn" %)(% class="numberingColumn" %)
10 (((
11 1
12 )))|(((
13 Open the home page. Click on the gear icon in the upper right corner of the portlet //**My Institution** //to open the configuration menu.
14 )))|(% rowspan="2" %)(% rowspan="2" %)
15 (((
16 [[image:attach:Startseite-Institutionsportlet konfigurieren_en.png||data-xwiki-image-style="img-screen" data-xwiki-image-style-border="true" width="500"]]
17 )))
18 |(% class="numberingColumn" colspan="1" %)(% class="numberingColumn" colspan="1" %)
19 (((
20 2
21 )))|(% colspan="1" %)(% colspan="1" %)
22 (((
23 Select the entry //**Edit**//.
24 )))
25 |(% class="numberingColumn" %)(% class="numberingColumn" %)
26 (((
27 3
28 )))|(((
29 (% class="content-wrapper" %)
30 (((
31 In the editing mode, you can use the Text editor to customise the content of the portlet to your liking.
32
33 {{expand title="Integrate images ..."}}
34 Below the text editor, you can see the content of the portlet's resource folder. This folder offers the possibility to manage stored content such as images or videos. In addition to deleting and adding resources, you can also rename your resources. Once a resource has been selected via its checkbox, the corresponding buttons will be activated above the table.
35 {{/expand}}
36 )))
37 )))|(((
38 [[image:attach:Startseite-Institutionsportlet editieren_en.png||data-xwiki-image-style="img-screen" data-xwiki-image-style-border="true" width="500"]]
39 )))
40 {{/expand}}
41
42 {{expand title="Integrate content into the institution portlet depending on user attributes ..."}}
43 Via the HTML view of the Text editor, you can display content in this portlet depending on user attributes or the system language selected. Just add the content in the following format at the appropriate position to the HTML code:
44
45 |(((
46 (% class="content-wrapper" %)
47 (((
48 {{code language="xml"}}
49 <[html-Element] data-visibility-condition="[attribut];[operator];[wert]"></[html-Element]>
50 {{/code}}
51 )))
52 )))|(((
53 [[image:attach:Startseite-Institutionsportlet Quelltext öffnen_en.png||data-xwiki-image-style="img-screen" data-xwiki-image-style-border="true" width="500"]]
54 )))
55
56 {{expand title="Expand to view examples ..."}}
57 **Example 1**: To provide a link to OPAL which will be displayed to all users whose first name begins with an E, enter:
58
59 {{code language="xml"}}
60 <a data-cke-saved-href="https://bildungsportal.sachsen.de/opal" href="https://bildungsportal.sachsen.de/opal" data-visibility-condition="firstname;startswith;E">Link zu OPAL</a>
61 {{/code}}
62
63 **Example 2**: To provide a text which will be displayed to users depending on the system language selected, enter:
64
65 {{code language="xml"}}
66 <p data-visibility-condition="locale;equals;en">Only users who have selected English in the general user system settings under language will see this text.</p>
67 {{/code}}
68 {{/expand}}
69
70 |=(((
71 You can use the following operators:
72 )))|=(((
73 You can combine these operators with the following user attributes:
74 )))
75 |(((
76 * contains
77 * equals
78 * startswith
79 * endswith
80 * not (e. g. "not-equals")
81 )))|(((
82 * firstname
83 * lastname
84 * email
85 * institutionaluseridentifier
86 * institutionalname
87 * orgunit
88 * studysubject
89 * studygroup
90 * persontype
91 * termsofstudy
92 * birthday
93 * locale (refers to the system language configured by the user)
94 )))
95
96 {{info}}
97 In the editing mode of the portlet, all content is displayed. In normal mode, however, the content of the portlet is displayed depending on attributes.
98 {{/info}}
99 {{/expand}}