Context

From MoodleDocs
Revision as of 11:34, 15 August 2009 by Colin Fraser (talk | contribs)

A context is a "space" in Moodle. Together, they define the navigational structure of a Moodle site. A course can be a context, so can an activity, resource or block.

Role contexts

The context is combined with Role permissions to define a user's capabilities on any page in Moodle. In the context of a specific course, some users have the permissions of a student and others of a teacher. While in another course, the same users may be assigned different roles because they are in a different context.

In Moodle 1.7 and onward, a permission context can include an activity module or a block. Thus a course can have many contexts in its space. These might include lesson, assignment, forum and quiz modules and blocks.

It is possible to assign a user different permissions based upon a specific context. For example, a user might be given the role of "student" for a course but be given a teacher's role in the context of one specific forum. Or a user can be a teacher of one course and a student in another course.

See also

Beginning Administration FAQ