Configuration in expert mode

You have the possibility to configure Visibility and Access of course elements as required. Use the following syntax.
Examples on using expert syntax

TypeSyntaxMeaning
Constants TRUE or 1 True
FALSE or 0 False
Variable now Actual time of server system
Functions date("[date]") Retrieve date
inLearningGroup("[string]") Generates TRUE for all members of the learning group [string]
inRightGroup("[string]") Generates TRUE for all group members with the same rights [string]
isUser("[string]") Generates TRUE for user with user name [string]
inLearningArea("[string]") Generates TRUE for all group members in the learning area [string]
isGlobalAuthor(0) Generates TRUE for all members of the OLAT authors' group
isCourseAdministrator(0) Generates TRUE for all owners of their course (learning resource)
isCourseCoach(0) Generates TRUE for all users supervising a learning group
isGuest(0) Generates TRUE for all users visiting OLAT as guests
hasAttribute("[AttrName]","[string]") Generates TRUE, if [string] corresponds to the relevant user's value of the AAI attribute [AttrName] .
isInAttribute("[AttrName]","[substring]") Generates TRUE, if [substring] corresponds to part of the relevant user's value of the AAI attribute [AttrName] .
General information on AAI
Description of AAI attributes
Specification of the AAI attributes (pdf file)
getPassed("[integer]") Generates the Boolean TRUE (=Passed) or FALSE (=Failed) from the course element with specified ID
getScore("[integer]") Generates the number of points from the course element with specified ID
getAttempts("[integer]") Generates the number of completed attempts from the course element with specified ID. Can be applied to course elements of the type Test, Self-test, Questionnaire (possible return values 0 or 1) and Task (return value = number of files handed in).
getInitialEnrollmentDate("[integer]") Generates the date of the first enrollment of the relevant course participant from the course element Enrolment with specified ID.
getRecentEnrollmentDate("[integer]") Generates the date of the last enrollment of the relevant course participant from the course element Enrolment with specified ID.
getPassedWithCourseId("[integer-1]","[integer-2]") Generates the Boolean TRUE (=Passed) or FALSE (=Failed) from the course element ID=[integer-2] of the course ID=[integer-1]
getScoreWithCourseId("[integer-1]","[integer-2]") Generates the score from the course element ID=[integer-2] of the course ID=[integer-1]
Units min Minutes
h Hours
w Weeks
m Months
Operators = Equal
> Greater than
< Less than
>= Greater/equal
<= Less/equal
* Multiplication
/ Division
+ Addition
- Subtraction
Booleans & Logical AND
| Logical OR


Back Close window