Liqiud basics
Modules
API
Mailer
Course
On this page
Overview
Below is a list of all the available drops on the course object
| Name | Description |
| course.course_sections | Array of CourseSection objects |
| course.course_materials | Array of CourseMaterial objects |
| course.has_requirements | Returns a Boolean; True if the course requires previous courses to be completed before enrolling, else false. |
| course.required_courses | Array of course objects required before enrolling to the current course. |
| course.tags | Array of Tag objects belonging to the course. |
| course.similar | Array of course objects similar to the current course. |
URL actions
The course object contains importan URLs that can be utilized inside the Education module on WM3. Below is a list of available URL actions.
| Name | Description |
| POST course.apply_url | Returns the URL to apply for the course. |
| POST course.enroll_url | Returns the URL to enroll in the course. Please use the course.apply_urlif the Education module is set to only allow application for courses. |
| GET course.student_url | Returns the URL to the student's homepage for the course object. (will only work for enrolled accounts) |
Limited enrollments
If a course has a set number of max attendees, then you will need to make sure that the limit, i.e count of enrolled students, is not reached before allowing enrollment.
This can be easily checked in the course object with the available methods listed below.
| Name | Description |
| course.limited_enrollments? | Returns a Boolean; True if the course has limited attendance, else false if it is unlimited. |
| course.enrollments_limit | Integer for how many students are allowed to enroll; defaults to 0. |
| course.enrollments_limit_reached? | Helper method to quickly check if the course cannot have more enrollments. |
Updated: 2021-12-10