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

Questions linking to files: Difference between revisions

From MoodleDocs
(ja link)
m (add template for link back)
 
(5 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{{Template:Questions}}
Questions can include images (or other media files) that are placed in the text or feedback areas of a question.
Questions can include images (or other media files) that are placed in the text or feedback areas of a question.


==Where to store your files linked to from questions.==
==Where to store your files linked to from questions.==


In Moodle  you have the choice to store files in :
In Moodle  you have the choice to store files in several areas or contexts:


* the site files area. These files are available to everybody unless your admin has set your Moodle installation to [[Site policies#Force_Users_to_Login|force login]] of all users of the site.
* the site files area. These files are available to everyone who can reach the Front Page. Note, many [[Site policies#Force_Users_to_Login|sites force a user to log in]] to limit access.
* the course files area where files are only accessible to those enrolled in the course or to others if you allow guests to access your course.
* the course files area where files are only accessible to those enrolled in the course or to others if you allow guests to access your course.
* in a site or course subfolder area where an individual file can be seen by a student via a link.
* in a site or course sub folder which has been made available to students via the [[Directory]] resource.


It is recommended that you store files in your questions :
It is recommended that you store files in your questions :


* in the course files area if the files are only linked to from questions used in one course.
* in the course files area if the files are only linked to from questions used in one course. Typically in a folder called Quiz.
* in the site files area if the files are linked to from questions in more than one course.
* in the site files area if the files are linked to from questions in more than one course.


==Moving / copying of linked files when you move questions between contexts==
==Moving or copying linked files when questions are moved between contexts==
{{Moodle 1.9}}
{{Moodle 1.9}}
Since Moodle 1.9 we have some automatic handling of files linked to by questions. We automatically detect files link to by questions which are in the course files area and site files area and ask you if you also want to move these linked files.
Improvement made in Moodle 1.9 offer some automatic handling of files which are used by questions. Moodle automatically detects the files which are linked to by questions. Moodle identifies each file's location in the course or site file area.  It will ask if you also want to move these linked files at the time you move the question(s).


Now when moving questions between [[Question contexts]] you will be asked if you want to move or copy files linked to by the questions you are moving. So when you move questions :
In Moodle 1.9,  when moving questions between [[Question contexts]] you will be asked if you want to move or copy files linked to in the questions you are moving. Thus, moving questions:


* from '''the course or activity context''' to '''a course category or the core system context''' then you are asked if you would like to move any linked files in the course files area to the site files area.
* from '''the course or activity context''' to '''a course category or the core system context''', you will be asked if you would like to move any linked files in the course files area to the site files area.
* from '''a course category or the core system context''' to '''the course or activity context''' then you are asked if you would like to move / copy any linked files in '''the site files area''' to '''the course files area'''.
* from '''a course category or the core system context''' to '''the course or activity context''', you will be asked if you would like to move / copy any linked files in '''the site files area''' to '''the course files area'''.


==Automatic backup of files in site files area==
==Automatic backup of files in site files area==
Line 29: Line 32:


[[ja:問題からファイルにリンクする]]
[[ja:問題からファイルにリンクする]]
[[de:Dateien in Fragen verlinken]]

Latest revision as of 13:01, 26 January 2010


Questions can include images (or other media files) that are placed in the text or feedback areas of a question.

Where to store your files linked to from questions.

In Moodle you have the choice to store files in several areas or contexts:

  • the site files area. These files are available to everyone who can reach the Front Page. Note, many sites force a user to log in to limit access.
  • the course files area where files are only accessible to those enrolled in the course or to others if you allow guests to access your course.
  • in a site or course subfolder area where an individual file can be seen by a student via a link.
  • in a site or course sub folder which has been made available to students via the Directory resource.

It is recommended that you store files in your questions :

  • in the course files area if the files are only linked to from questions used in one course. Typically in a folder called Quiz.
  • in the site files area if the files are linked to from questions in more than one course.

Moving or copying linked files when questions are moved between contexts

Moodle1.9


Improvement made in Moodle 1.9 offer some automatic handling of files which are used by questions. Moodle automatically detects the files which are linked to by questions. Moodle identifies each file's location in the course or site file area. It will ask if you also want to move these linked files at the time you move the question(s).

In Moodle 1.9, when moving questions between Question contexts you will be asked if you want to move or copy files linked to in the questions you are moving. Thus, moving questions:

  • from the course or activity context to a course category or the core system context, you will be asked if you would like to move any linked files in the course files area to the site files area.
  • from a course category or the core system context to the course or activity context, you will be asked if you would like to move / copy any linked files in the site files area to the course files area.

Automatic backup of files in site files area

Moodle1.9


Since Moodle 1.9 we also back up any files in the site files area that are linked to from questions backed up when you back up a course. The files backed up will be restored to the site files area when you restore the course (unless a file with the same name in the same directory already exists). And as before all course files are backed up if you back up your course files.