Wiki source code of Institutionsportlet

Last modified by Moritz Baumgarten on 10.01.2024

Hide last authors
Moritz Baumgarten 197.1 1
Carina Enke 64.1 2
Moritz Baumgarten 198.1 3 (% class="MsoBodyText" %)
4 Only the institution's administrators as well as system administrators can customise the content of the portlet **//My Institution//**//.// 
Carina Enke 64.1 5
Moritz Baumgarten 198.1 6 {{expand title="Edit institution portlet ..."}}
7 To edit the content of the portlet //**My Institution**//, proceed as follows:
Carina Enke 64.1 8
9 |(% class="numberingColumn" %)(% class="numberingColumn" %)
10 (((
11 1
12 )))|(((
Moritz Baumgarten 198.1 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.
Carina Enke 64.1 14 )))|(% rowspan="2" %)(% rowspan="2" %)
15 (((
Moritz Baumgarten 198.1 16 [[image:attach:Startseite-Institutionsportlet konfigurieren_en.png||data-xwiki-image-style="img-screen" data-xwiki-image-style-border="true" width="500"]]
Carina Enke 64.1 17 )))
18 |(% class="numberingColumn" colspan="1" %)(% class="numberingColumn" colspan="1" %)
19 (((
20 2
21 )))|(% colspan="1" %)(% colspan="1" %)
22 (((
Moritz Baumgarten 198.1 23 Select the entry //**Edit**//.
Carina Enke 64.1 24 )))
25 |(% class="numberingColumn" %)(% class="numberingColumn" %)
26 (((
27 3
28 )))|(((
Moritz Baumgarten 198.1 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.
Carina Enke 64.1 32
Moritz Baumgarten 198.1 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.
Carina Enke 64.1 35 {{/expand}}
36 )))
Moritz Baumgarten 198.1 37 )))|(((
38 [[image:attach:Startseite-Institutionsportlet editieren_en.png||data-xwiki-image-style="img-screen" data-xwiki-image-style-border="true" width="500"]]
Carina Enke 64.1 39 )))
40 {{/expand}}
41
Moritz Baumgarten 198.1 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:
Carina Enke 64.1 44
45 |(((
Moritz Baumgarten 198.1 46 (% class="content-wrapper" %)
47 (((
Carina Enke 64.1 48 {{code language="xml"}}
49 <[html-Element] data-visibility-condition="[attribut];[operator];[wert]"></[html-Element]>
50 {{/code}}
Moritz Baumgarten 198.1 51 )))
Carina Enke 64.1 52 )))|(((
Moritz Baumgarten 198.1 53 [[image:attach:Startseite-Institutionsportlet Quelltext öffnen_en.png||data-xwiki-image-style="img-screen" data-xwiki-image-style-border="true" width="500"]]
Carina Enke 64.1 54 )))
55
Moritz Baumgarten 198.1 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:
Carina Enke 64.1 58
59 {{code language="xml"}}
Moritz Baumgarten 197.1 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>
Carina Enke 64.1 61 {{/code}}
62
Moritz Baumgarten 198.1 63 **Example 2**: To provide a text which will be displayed to users depending on the system language selected, enter:
Carina Enke 64.1 64
65 {{code language="xml"}}
Moritz Baumgarten 198.1 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>
Carina Enke 64.1 67 {{/code}}
68 {{/expand}}
69
70 |=(((
Moritz Baumgarten 198.1 71 You can use the following operators:
Carina Enke 64.1 72 )))|=(((
Moritz Baumgarten 198.1 73 You can combine these operators with the following user attributes:
Carina Enke 64.1 74 )))
75 |(((
76 * contains
77 * equals
78 * startswith
79 * endswith
Moritz Baumgarten 198.1 80 * not (e. g. "not-equals")
Carina Enke 64.1 81 )))|(((
82 * firstname
83 * lastname
84 * email
85 * institutionaluseridentifier
86 * institutionalname
87 * orgunit
88 * studysubject
89 * studygroup
90 * persontype
91 * termsofstudy
92 * birthday
Moritz Baumgarten 198.1 93 * locale (refers to the system language configured by the user)
Carina Enke 64.1 94 )))
95
96 {{info}}
Moritz Baumgarten 198.1 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.
Carina Enke 64.1 98 {{/info}}
99 {{/expand}}