Difference between revisions of "Question contexts"

Jump to: navigation, search

Note: You are currently viewing documentation for Moodle 1.9. Up-to-date documentation for the latest stable version is available here: Question contexts.

(formatting for readability and a little more info)
(adding image to page and adding more lengthy explanation of what a context is and how question contexts work)
Line 1: Line 1:
{{Questions}}{{Moodle 1.9}}From Moodle 1.9 we can share questions in different contexts. Each different context has a separate question category hierarchy.
+
{{Questions}}{{Moodle 1.9}}From Moodle 1.9 we can share questions in different contexts. Context maybe an unfamiliar word, think of a context as an area within your Moodle site. Each different context has a separate question category hierarchy. And you can give your users different permssions within different context areas.
  
The questions contexts to which you have access and what you can do within those contexts depends on :
+
See the diagram illustrating the relationship of the different contexts below. Different colours denote different contexts. Notice how question contexts contain each other.
  
* where you access them :
+
[[image:QuestionContexts.png]]
** '''Activity context''' : questions only available to one activity module.
+
 
** '''Course context''' : questions available to all activity modules in a course and within the course from the 'Questions' link in the course administration block.
+
Question contexts are just as a subset of the Roles and Permissions contexts. A context contained by another context inherits the permissions of the containing context. You can access question categories in any containing context if you have permission to do so. Remember you can access the question bank in two ways from within a activity (now only the quiz activity) or from the link in the Course admin menu to 'Questions'. When you access the question bank from the :
** '''Course category contexts''' : questions available to all activity modules and courses in the course category (remember one course category can contain other course categories, you can share your questions in any or all of the parent course categories).
+
 
** '''Core System context''' : questions available in all courses and activities on your site.
+
* Activity. If you have permissions you can access question categories in :
*AND Question capabilities are tested in the relevant context. So, for example, to add a question to a category you must have the add capability for that context. See [[:Category:Roles|roles and capability help]] for more info. If you don't have permssion to do something in a context then the categories in that context will not appear.
+
** that activity's context and containing contexts :
 +
** the course in which the activity module is contained.
 +
** the course categories in which the course that contains the activity module is contained.
 +
** the core system context.
 +
* Course. If you have permissions you can access question categories in :
 +
** that course.
 +
** the course categories in which the course is contained.
 +
** the core system context.
 +
 
 +
So questions contexts are accessible as follows :
 +
 
 +
* '''Activity context''' : questions only available to one activity module.
 +
* '''Course context''' : questions available to all activity modules in a course and within the course from the 'Questions' link in the course administration block.
 +
* '''Course category contexts''' : questions available to all activity modules and courses in the course category (remember one course category can contain other course categories, you can share your questions in any or all of the parent course categories).
 +
* '''Core System context''' : questions available in all courses and activities on your site.
 +
 
 +
All Question capabilities are tested in the relevant context. So, for example, to add a question to a category you must have the add capability for that context. See [[:Category:Roles|roles and capability help]] for more info. If you don't have permission to do something in a context then the categories in that context will not appear.
  
 
[[Category:Roles]]
 
[[Category:Roles]]

Revision as of 03:11, 31 August 2007


Moodle1.9

From Moodle 1.9 we can share questions in different contexts. Context maybe an unfamiliar word, think of a context as an area within your Moodle site. Each different context has a separate question category hierarchy. And you can give your users different permssions within different context areas.

See the diagram illustrating the relationship of the different contexts below. Different colours denote different contexts. Notice how question contexts contain each other.

QuestionContexts.png

Question contexts are just as a subset of the Roles and Permissions contexts. A context contained by another context inherits the permissions of the containing context. You can access question categories in any containing context if you have permission to do so. Remember you can access the question bank in two ways from within a activity (now only the quiz activity) or from the link in the Course admin menu to 'Questions'. When you access the question bank from the :

  • Activity. If you have permissions you can access question categories in :
    • that activity's context and containing contexts :
    • the course in which the activity module is contained.
    • the course categories in which the course that contains the activity module is contained.
    • the core system context.
  • Course. If you have permissions you can access question categories in :
    • that course.
    • the course categories in which the course is contained.
    • the core system context.

So questions contexts are accessible as follows :

  • Activity context : questions only available to one activity module.
  • Course context : questions available to all activity modules in a course and within the course from the 'Questions' link in the course administration block.
  • Course category contexts : questions available to all activity modules and courses in the course category (remember one course category can contain other course categories, you can share your questions in any or all of the parent course categories).
  • Core System context : questions available in all courses and activities on your site.

All Question capabilities are tested in the relevant context. So, for example, to add a question to a category you must have the add capability for that context. See roles and capability help for more info. If you don't have permission to do something in a context then the categories in that context will not appear.