<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://docs.moodle.org/405/en/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Clodo</id>
	<title>MoodleDocs - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://docs.moodle.org/405/en/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Clodo"/>
	<link rel="alternate" type="text/html" href="https://docs.moodle.org/405/en/Special:Contributions/Clodo"/>
	<updated>2026-04-16T17:23:01Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.43.5</generator>
	<entry>
		<id>https://docs.moodle.org/405/en/index.php?title=Question_sharer&amp;diff=124395</id>
		<title>Question sharer</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/405/en/index.php?title=Question_sharer&amp;diff=124395"/>
		<updated>2016-07-24T13:39:42Z</updated>

		<summary type="html">&lt;p&gt;Clodo: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Questions}}&lt;br /&gt;
&lt;br /&gt;
By default, teachers can only share questions with teachers in the same course as themselves and they can only save questions to the course they are currently working in.&lt;br /&gt;
&lt;br /&gt;
This custom role of &#039;Question sharer&#039; allows them to access and share questions at category or site level. The role must be created by an adminstrator and then given to selected teachers.&lt;br /&gt;
&lt;br /&gt;
==Creating a new role==&lt;br /&gt;
#As an administrator, go to &#039;&#039;Site administration&amp;gt;Users&amp;gt;Permissions&amp;gt;Define roles&#039;&#039; and  click the &#039;Add a new role&#039; button at the bottom of the screen.&lt;br /&gt;
#On the next screen, ignore archetypes and presets and click &#039;Continue&#039;&lt;br /&gt;
#Give the role a name and if desired a description and tick the &amp;quot;System&amp;quot; context:&lt;br /&gt;
&lt;br /&gt;
[[File:questionsharer.png|center|thumb|600px]]&lt;br /&gt;
&lt;br /&gt;
4.In the filter, type &amp;quot;question&amp;quot; &lt;br /&gt;
&lt;br /&gt;
5.Set the following  capabilities to &#039;allow&#039;:&lt;br /&gt;
&lt;br /&gt;
moodle/question:add&lt;br /&gt;
&lt;br /&gt;
moodle/question:editall&lt;br /&gt;
&lt;br /&gt;
moodle/question:managecategory&lt;br /&gt;
&lt;br /&gt;
moodle/question:moveall&lt;br /&gt;
&lt;br /&gt;
moodle/question:viewall&lt;br /&gt;
&lt;br /&gt;
moodle/question:useall&lt;br /&gt;
&lt;br /&gt;
[[File:questioncaps.png|center]]&lt;br /&gt;
&lt;br /&gt;
6. Click the &#039;Create this role&#039; button.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Assigning the role to a teacher==&lt;br /&gt;
&lt;br /&gt;
#As an administrator, go to &#039;&#039;Site administration &amp;gt; Users &amp;gt; Permissions &amp;gt; Assign system roles&#039;&#039;.&lt;br /&gt;
#You should now see your newly created role here&lt;br /&gt;
#Assign the role to the required course teacher(s).(&#039;&#039;Note that the users still need to have the teacher role in their courses.)&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Note that you can also assign the role to a user in a course category if you only wish them to share questions in that category. To assign a role to a user within the scope of a particular category only:&lt;br /&gt;
# Log in as an administrator.&lt;br /&gt;
# From the site&#039;s homepage, click on the desired course category.&lt;br /&gt;
# From inside the desired course category, click on &amp;quot;Assign roles&amp;quot; in the Administration block. &lt;br /&gt;
# Click on the role you wish to assign to the user.&lt;br /&gt;
# Select and add the user to the role.&lt;br /&gt;
&lt;br /&gt;
==Sharing questions==&lt;br /&gt;
&lt;br /&gt;
A normal teacher in a course can only see the question category for their own course when they access the question bank. This teacher for example can only see her US Film course questions and can only add her questions to there (or any sub-category she might create):&lt;br /&gt;
&lt;br /&gt;
[[File:regularteacherview.png]]&lt;br /&gt;
&lt;br /&gt;
However, when she has been given the Question sharer role she can then access any questions which have been added at category level (&#039;Miscellaneous&#039;) and for the whole site (&#039;System&#039;)&lt;br /&gt;
&lt;br /&gt;
[[File:sharerview.png]] &lt;br /&gt;
&lt;br /&gt;
She can also save her questions to there, allowing them to be shared by other teachers with the Question sharer role.&lt;br /&gt;
&lt;br /&gt;
Note that she can also add questions from &#039;&#039;Administration&amp;gt;Front page settings&amp;gt;Question bank.&#039;&#039; (but she has no higher administrative powers.)&lt;br /&gt;
&lt;br /&gt;
===What are these categories?===&lt;br /&gt;
*The categories you will see relate to course categories. For example, &#039;Miscellaneous&#039; is the default category available on a new install of Moodle (which can be renamed)&lt;br /&gt;
*So a teacher of French with the Question sharer role might see &#039;Category - Languages&#039; , assuming her French course resides with the Spanish and German course in a category called &#039;Languages&#039;, for example. If she saves her quiz questions to the &#039;Languages&#039; category, then her Spanish and German teacher colleagues with the role can also access them from their respective courses.&lt;br /&gt;
&lt;br /&gt;
[[File:questioncategories.png]]&lt;br /&gt;
&lt;br /&gt;
*She can edit the names by clicking on &#039;&#039;Course administration&amp;gt;Question bank&amp;gt;Categories&#039;&#039; and then clicking the edit icon:&lt;br /&gt;
&lt;br /&gt;
{|&lt;br /&gt;
|[[File:categorieslink.png|left|Question bank|thumb|300px]]&lt;br /&gt;
|[[File:editname.png|eft|Editing the name|thumb|300px]]&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Sharing questions site-wide===&lt;br /&gt;
*From a course, go to &#039;&#039;Course administration&amp;gt;Question bank&amp;gt;Categories&#039;&#039;&lt;br /&gt;
*Click &#039;Add category&#039; and select System as the parent category.&lt;br /&gt;
*Create your category and add questions to it.&lt;br /&gt;
*The  questions in this category will be available anywhere on the site for teachers with the question sharer role to access.&lt;br /&gt;
&lt;br /&gt;
==Why does this work?==&lt;br /&gt;
&lt;br /&gt;
See: [[Question permissions explained with diagrams]].&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
&lt;br /&gt;
* [[Question bank]]&lt;br /&gt;
&lt;br /&gt;
[[Category:Roles]]&lt;br /&gt;
&lt;br /&gt;
[[de:Fragen-Sharer-Rolle]]&lt;br /&gt;
&lt;br /&gt;
[[es:Compartidor de preguntas]]&lt;br /&gt;
&lt;br /&gt;
[[fr:Partager la banque de questions]]&lt;/div&gt;</summary>
		<author><name>Clodo</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/405/en/index.php?title=How_to_minimize_the_question_bank_when_doing_backup/restore&amp;diff=124336</id>
		<title>How to minimize the question bank when doing backup/restore</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/405/en/index.php?title=How_to_minimize_the_question_bank_when_doing_backup/restore&amp;diff=124336"/>
		<updated>2016-07-19T10:12:04Z</updated>

		<summary type="html">&lt;p&gt;Clodo: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;When you back up and restore a course or a quiz, often a very large question bank is backed up which includes many questions not being used in the course or quiz.  This can be a problem when the question bank on a site gets very large (over 1000 questions or over 500mb). At this point, backup and restore may fail due to timeouts or other technical reasons. Sharing courses on the Hub is also difficult because large question banks of unrelated questions are included which make sharing backup files difficult and confusing to teachers receiving the question bank.&lt;br /&gt;
&lt;br /&gt;
Originally, the question bank in a course and the upper level categories of questions has always been included in a backup.  In 2007, a Tracker issue (MDL-12403) was made to allow teachers and administrators to limit the questions included in a backup to just the ones needed. Discussion on that this issue showed that a solution was difficult and in 2013, a checkbox was added to the Backup procedure to completely remove the question bank in a backup file. Thus from Moodle 2.7, it was possible to do an all-or-nothing inclusion or exclusion of the question bank. When the checkbox to exclude the question bank is checked, all quizzes are also removed from the backup.&lt;br /&gt;
&lt;br /&gt;
This did not solve the original issue so a separate Tracker issue was made concerning how to minimize or select the questions included in a backup (MDL-41924). As of Moodle 2.9, this issue is still open. As teachers and admins need to share questions and share courses which often include quizzes (one of the most popular activities in Moodle), it is still possible to minimize the questions, though doing it manually is complicated. The following workaround was successfully done in Moodle 2.9.1, and the resulting course backup file was restored on a Moodle 2.8.5 site. &lt;br /&gt;
&lt;br /&gt;
This workaround strategy is based on the design of the question bank which only includes questions in a backup that are in the same category or a higher level category.  Thus System Level questions are included in every backup on the site.  Note that Moodle uses the word &amp;quot;category&amp;quot; in two ways which can be confusing.  A &amp;quot;category&amp;quot; can refer to a group of courses (Course Category) or a group of questions (question bank category).  In this section, we usually use &amp;quot;category&amp;quot; to mean a group of questions in the question bank.  These categories are also called &amp;quot;contexts&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Workaround to Minimize Questions in a Course Backup&#039;&#039;&#039;&lt;br /&gt;
#  Move all questions from System Level and other upper level Categories in your question bank to lower category levels--down to course level categories.  (this makes it difficult to view and share, but is necessary). &lt;br /&gt;
#  Move the course (or a copy of the course) to a temporary Course Category somewhere on your site where there are no other courses.&lt;br /&gt;
#  Make a backup of your course and restore this backup in the same Course Category.  (Moodle will automatically push all upper level category questions into course level categories--you will see this happen on the screen).&lt;br /&gt;
#  Go into the newly restored course and open the Question Bank.  You will see all questions are at the course level.  &lt;br /&gt;
#  Prune (delete) all unneeded questions in your newly restored course.  Do not worry about deleting here, because you are only deleting course level copies of the questions.  The original questions on your site are not affected.  &lt;br /&gt;
#  As you delete groups of questions, Moodle will list and confirm the questions you wish to delete. If you mistakenly try to delete a question that is being used in your course, Moodle will mark that one with an asterisk.  Then cancel the deletion, and try selecting again.  Note those questions and cancel the deletion and choose only unneeded questions.  (in the case of thousands of questions, this deletion process can take a long time). &lt;br /&gt;
#  After you have minimized the questions manually by deletion at these course level categories, you can now make a another backup file and when you restore it, only the remaining questions you selected will be included.&lt;br /&gt;
&lt;br /&gt;
In addition, you can encourage Moodle HQ to tackle this issue by voting, watching, and commenting in these two tracker issues: MDL-41924 and MDL-12403.&lt;br /&gt;
&lt;br /&gt;
[[es:Como minimizar el Banco de Preguntas al hacer respaldo/restauracion]]&lt;br /&gt;
[[fr:Comment minimiser la banque de questions lors d&#039;une sauvegarde/restauration d&#039;un cours]]&lt;/div&gt;</summary>
		<author><name>Clodo</name></author>
	</entry>
</feed>