To create a course in Namaste! LMS go to the Courses menu and create one.
The courses are just custom WordPress posts so the interface for creating them will be familiar to you:
It’s just like creating a post or page.
Use the content box to write a description for the course. You would normally use it for ad-like content of your course, for an introduction, to describe the curriculum, what the course is about, etc. The course pages are visible for everyone unless you explicitly restricts it with the namaste-condition shortcode (more info). It’s the lessons that require login and enrollment, not the course page.
Several shortcodes can be used to help you with the course page:
- The shortcode namaste-enroll will display enroll button for logged in users. For non-logged in users it will display text “You have to be logged in”
- You may want to display enroll buttons for all your courses in a separate page – for example in table or something like that. To do this you need to use a shortcode like namaste-enroll course_id=X where X is the course ID. You can find the exact shortcode for your course on the Edit Course page.
- The shortcode namaste-course-lessons will display all the lessons available in this course. You can enable various sorting options, check the internal Help page under Namaste! LMS for more information on this and all shortcodes.
- The shortcode namaste-todo displays the required lessons that has to be completed to complete the course. Courses that are already completed by the logged in user will not be shown here.
Under the area for writing content, there is a box with Namaste-specific settings.
In addition to the shortcodes you can decide whether you want users to be able to enroll to the course themselves or only the administrator will be able to enroll them (or approve their requests). Students can enroll either by clicking the button on the course front-end or through the My Courses menu in their dashboard.
Each course can have pre-requisites, i.e. it may require other courses to be completed before the student can enroll.
You can also select which of the course’s lessons must be completed to complete the course. The course doesn’t require all lessons by default, so you can make some optional.
Note that courses by default don’t show up on your homepage. If you wish to show them, you need to enable the following setting at Namaste! LMS Settings page:
Hide parts of the course page for not enrolled students
Normally everything on your course page is visible for everyone. You may however restrict its content:
The shortcode namaste-condition can be used to display conditional content to logged in or non-logged in users like this: Content for not enrolled users. You can also use the shortcde outside of the course page by passing the attribute course_id=X where X is the ID of your course. The shortcode is shown with the correct ID right in your Edit Course page -> in Namaste! Settings box, section Shortcodes: