Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update createrepo.md #52

Merged
merged 1 commit into from
Dec 10, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading