Changes for page Expertenmodus
Last modified by Carina Enke on 18.11.2025
From version 6.3
edited by Carina Enke
on 18.11.2025
on 18.11.2025
Change comment:
There is no comment for this version
To version 6.4
edited by Carina Enke
on 18.11.2025
on 18.11.2025
Change comment:
There is no comment for this version
Summary
-
Page properties (1 modified, 0 added, 0 removed)
Details
- Page properties
-
- Content
-
... ... @@ -33,261 +33,19 @@ 33 33 ))) 34 34 {{/expand}} 35 35 36 -{{expand title="Make individual content elements in a public course only visible to guests ..."}} 37 -Do you wish to display certain content elements in a public course only to guests and course owners? Then enter the following code into the text field next to Expert mode in the Visibility tab of the corresponding course element. This will display the course element in a publicly accessible course only to guest users and course owners. 38 38 39 -{{code}} 40 -isGuest(0)=true |isCourseAdministrator(0) 41 -{{/code}} 42 42 43 -|=((( 44 -Configuration in the course editor 45 -)))|((( 46 -(% class="content-wrapper" %) 47 -((( 48 -[[image:attach:Kurseditor - Konfiguration keine Gäste_de.png||data-xwiki-image-style="img-screen" data-xwiki-image-style-border="true" width="500"]] 49 -))) 50 -))) 51 -|=((( 52 -Course view as a registered user 53 -)))|((( 54 -[[image:attach:Kursansicht - nicht für registrierte Nutzer_de.png||data-xwiki-image-style="img-screen" data-xwiki-image-style-border="true" width="500"]] 55 -))) 56 -|=((( 57 -Course view as a guest user 58 -)))|((( 59 -[[image:attach:Kursrun - Ansicht nur Gäste_de.png||data-xwiki-image-style="img-screen" data-xwiki-image-style-border="true" width="500"]] 60 -))) 61 -|=((( 62 -Course view as a course owner 63 -)))|((( 64 -[[image:attach:Kursrun - Ansicht Kursverantwortlicher_de.png||data-xwiki-image-style="img-screen" data-xwiki-image-style-border="true" width="500"]] 65 -))) 66 -{{/expand}} 67 67 68 -{{expand title="Activate course elements according to test result ..."}} 69 -Do you wish to activate certain course elements depending on a test? For instructions on how to implement this scenario, see the help page [[Learning path control by test result>>doc:LMS.Benutzerhandbuch OPAL.Lehren.Leitfäden.Lernwegsteuerung nach Testergebnis.WebHome]]. 70 -{{/expand}} 71 71 72 -{{expand title="Further application examples of the expert syntax ..."}} 73 -{{info}} 74 -(% class="box box infomessage infomessage" %)In addition to the general examples, which can be used institution-independently, there are also institution-specific restrictions on data that will be transmitted depending on the institution. 75 75 76 -(% class="box box infomessage infomessage" %)For OPAL users, the help page [[Overview of OPAL Shibboleth>>doc:LMS.Benutzerhandbuch OPAL.Administration.OPAL Shibboleth Attribute.WebHome]] attributes contains all currently usable institution-specific attributes of Saxon institutions. 77 -{{/info}} 78 78 79 -(% class="wrapped" %) 80 -|=((( 81 -Examples of rules in the tabs //«//Visibility// », « //Access// », //and //« //Points// » //(structure element) 82 -)))|=((( 83 -Effects 84 -))) 85 -|((( 86 -(% class="TableParagraph" %) 87 -isGuest(0)=true 88 -)))|((( 89 -(% class="TableParagraph" %) 90 -If this code is entered in the Visibility tab, the course element will only be visible to guests, but not to registered users. 91 91 92 -(% class="TableParagraph" %) 93 -If this code is entered in the Access tab, only guests will have access to this course element. 94 94 95 -(% class="TableParagraph" %) 96 -Alternatively, the code isGuest(0) or isGuest (0)=1 can be used. 97 -))) 98 -|(% colspan="1" %)(% colspan="1" %) 99 -((( 100 -isGuest(0)=false 101 -)))|(% colspan="1" %)(% colspan="1" %) 102 -((( 103 -If this code is entered in the Visibility tab, the course element will be hidden from guests. 104 104 105 -If this code is entered in the Access tab, guests will not have access to the course element's contents. 106 -))) 107 -|((( 108 -(% class="TableParagraph" %) 109 -inLearningGroup("Beginners") = false 110 -)))|((( 111 -(% class="TableParagraph" %) 112 -With the exception of the «Beginners» group, the course element will be visible to all course participants. 113 -))) 114 -|((( 115 -(% class="TableParagraph" %) 116 -(now >= date("22.03.2017 12:00")) & (now <= date("23.08.2017 18:00")) | inLearningGroup("Supervisors") 117 -)))|((( 118 -(% class="TableParagraph" %) 119 -The course element will be visible to all course participants from 22.03.2017 to 23.08.2017. For the members of the «Supervisors» learning group, in contrast, it will be visible at any time. 120 -))) 121 -|((( 122 -(% class="TableParagraph" %) 123 -(now >= date("03.09.2017 00:00")) & (now <= date("13.10.2017 00:00")) & inRightGroup("Assessors")| isUser("Author") 124 -)))|((( 125 -(% class="TableParagraph" %) 126 -The course element will be visible to all course participants of the «Assessors» right group from 03.09.2017 to 13.10.2017. For the user with the user name «Author», in contrast, it will be visible at any time. 127 -))) 128 -|(% colspan="1" %)(% colspan="1" %) 129 -((( 130 -(% class="TableParagraph" %) 131 -isInAttribute("surname","Mue") 132 -)))|(% colspan="1" %)(% colspan="1" %) 133 -((( 134 -(% class="TableParagraph" %) 135 -Returns TRUE for all users whose «surname» attribute contains the letter sequence "Mue". For example, it returns TRUE for the value "Mueller" or "Muehlebacher". 136 -))) 137 -|(% colspan="1" %)(% colspan="1" %) 138 -((( 139 -(% class="TableParagraph" %) 140 -(getUserProperty("orgUnit") = "Marketing") 141 -)))|(% colspan="1" %)(% colspan="1" %) 142 -((( 143 -(% class="TableParagraph" %) 144 -Checks whether a person is in the "Marketing" organisation unit. This is useful, for example, if the data is automatically transferred from LDAP. 145 -))) 146 -|(% colspan="1" %)(% colspan="1" %) 147 -((( 148 -(% class="TableParagraph" %) 149 -(getPassed("69742969114730") | getPassed("69742969115733") | getPassed("69742969118009")) * 10 150 -)))|(% colspan="1" %)(% colspan="1" %) 151 -((( 152 -(% class="TableParagraph" %) 153 -This rule can be set in the «Points» tab -> «Process points» of the Structure course element. The Structure course element shows 10 points if any of the tests (course element IDs "69742969114730", "69742969115733", or "69742969118009") will be passed, otherwise it shows 0 points. 154 -))) 155 -|(% colspan="1" %)(% colspan="1" %) 156 -((( 157 -(getScore("69742969114730") + getScore("69742969115733") + getScore("69742969118009")) >= 140 | getPassed("69978845384688") 158 -)))|(% colspan="1" %)(% colspan="1" %) 159 -((( 160 -(% class="TableParagraph" %) 161 -This rule can be set in the «Points» tab -> 162 162 163 -«Passed if» of the Structure course element. The Structure course element shows "passed" if a minimum of 140 points will be achieved across all tests or if «passed» will be manually set (Assessment course element with the ID "69978845384688"). 164 -))) 165 -|(% colspan="1" %)(% colspan="1" %) 166 -((( 167 -(% class="TableParagraph" %) 168 -getAttempts("70323786958847") > 0 169 -)))|(% colspan="1" %)(% colspan="1" %) 170 -((( 171 -(% class="TableParagraph" %) 172 -Returns TRUE as soon as the course participant has completed the test with the specified ID for the first time. 173 -))) 174 -|((( 175 -(% class="TableParagraph" %) 176 -getAttempts("70323524635734") <= 3 177 -)))|((( 178 -(% class="TableParagraph" %) 179 -Returns FALSE as soon as the course participant has saved more than 3 files to the drop box of the Task course element. 180 -))) 181 -|((( 182 -(% class="TableParagraph" %) 183 -getInitialEnrollmentDate("70323786958847") <= date("26.5.2017 18:00") 184 -)))|((( 185 -(% class="TableParagraph" %) 186 -Returns TRUE for those course participants who enrolled in one of the available groups via the Enrolment course element using a specified ID before 6 p.m. on May 26 2017. 187 -))) 188 -|(% colspan="1" %)(% colspan="1" %) 189 -((( 190 -(% class="TableParagraph" %) 191 -getInitialEnrollmentDate("70323786958847") + 2h > now 192 -)))|(% colspan="1" %)(% colspan="1" %) 193 -((( 194 -(% class="TableParagraph" %) 195 -Returns TRUE within two hours from the time of enrolment for those course participants who enrolled in one of the available groups via the Enrolment course element using a specified ID. In this way, it can be ensured that each course participant can only e.g. process a script during a certain period of time. 196 -))) 197 -|(% colspan="1" %)(% colspan="1" %) 198 -((( 199 -(% class="TableParagraph" %) 200 -(getInitialCourseLaunchDate(0) >= never) | (getInitialCourseLaunchDate(0) + 2h > now) 201 -)))|(% colspan="1" %)(% colspan="1" %) 202 -((( 203 -(% class="TableParagraph" %) 204 -Returns TRUE if the course participant has not yet visited the course, or during the first two hours of the first course visit. In this way, it can be ensured that each course participant can only see the course for a certain period of time. 205 -))) 206 -|(% colspan="1" %)(% colspan="1" %) 207 -((( 208 -(% class="TableParagraph" %) 209 -(getRecentCourseLaunchDate(0) + 10min) > now 210 -)))|(% colspan="1" %)(% colspan="1" %) 211 -((( 212 -(% class="TableParagraph" %) 213 -Returns TRUE if the user has been active in the course for more than 10 minutes. 214 -))) 215 -|((( 216 -(% class="TableParagraph" %) 217 -getOnyxTestOutcome("84692289655276","SCORE") >= 10 218 -)))|((( 219 -(% class="TableParagraph" %) 220 -Returns TRUE if the user has reached at least 10 points. 221 -))) 222 -|((( 223 -(% class="TableParagraph" %) 224 -getOnyxTestOutcomeZK("84389429397045","PASS") ="true" 225 -)))|((( 226 -(% class="TableParagraph" %) 227 -Returns TRUE if the user has passed the test. 228 -))) 229 -|((( 230 -(% class="TableParagraph" %) 231 -getMark("84692289655276") > 4 232 -)))|((( 233 -(% class="TableParagraph" %) 234 -Returns TRUE if the user's mark for the specified course element is better than 4. 235 -))) 236 -|(% colspan="1" %)(% colspan="1" %) 237 -((( 238 -getProgress("69742969114730")>=100 239 -)))|(% colspan="1" %)(% colspan="1" %) 240 -((( 241 -Returns TRUE if the user has completed the specified course element (course progress). 242 -))) 243 243 244 -{{note title="Attention!"}} 245 -Please note that the above-mentioned course element IDs are just examples. When you create a course, you need to reference the IDs of your own courses. 246 -{{/note}} 247 -{{/expand}} 248 248 249 -**Expert syntax** 250 250 251 -{{expand title="Overview of the available expert syntax ..."}}(% class="wrapped" %) 252 -|=((( 253 -Type 254 -)))|=((( 255 -Syntax 256 -)))|=((( 257 -Description 258 -))) 259 -|(% rowspan="2" %)(% rowspan="2" %) 260 -((( 261 -(% class="TableParagraph" %) 262 -**Constants** 263 -)))|((( 264 -(% class="TableParagraph" %) 265 -//TRUE //or //1// 266 -)))|((( 267 -(% class="TableParagraph" %) 268 -True 269 -))) 270 -|((( 271 -(% class="TableParagraph" %) 272 -//FALSE //or //0// 273 -)))|((( 274 -(% class="TableParagraph" %) 275 -False 276 -))) 277 -|((( 278 -(% class="TableParagraph" %) 279 -**Variable** 280 -)))|((( 281 -(% class="TableParagraph" %) 282 -//now// 283 -)))|((( 284 -(% class="TableParagraph" %) 285 -Current server system time 286 -))) 287 -|(% rowspan="37" %)(% rowspan="37" %) 288 -((( 289 -(% class="TableParagraph" %) 290 -**Functions** 291 291 292 292 293 293 ... ... @@ -461,23 +461,6 @@ 461 461 462 462 463 463 464 - 465 - 466 - 467 - 468 - 469 - 470 - 471 - 472 - 473 - 474 - 475 - 476 - 477 - 478 - 479 - 480 - 481 481 482 482 )))|((( 483 483 (% class="TableParagraph" %)