Skip to content

Commit

Permalink
Merge pull request #52 from maths/sangwinc-patch-2
Browse files Browse the repository at this point in the history
Update createrepo.md
  • Loading branch information
EJMFarrow authored Dec 10, 2024
2 parents 0a72782 + ec6aab7 commit 0fb88a1
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions doc/createrepo.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,16 @@ TODO: note explaining directory structure.

### Example 3:

Assume Moodle is exactly as in Example 1.

You have a quiz within your course, and you have populated the _quiz_ question bank, rather than the course question bank. You would like all questions from the quiz question bank, and all sub-categories, to become files in a sub-directory "gitsync-loc" of your local `$rootdirectory` directory.

Navigate to the view quiz, to get the id of the quiz itself from the URL, e.g. `mod/quiz/view.php?id=547`.

`php createrepo.php -l module -n=547 -d "gitsync-sub"`

### Example 4:

`php createrepo.php -t 4ec7cd3f62e08f595df5e9c90ea7cfcd -i edmundlocal -r "C:\question_repos" -d "source_1" -l system`

You will need to specify the context of the questions you want to export from Moodle.
Expand Down

0 comments on commit 0fb88a1

Please sign in to comment.