Using subversion repositories with moodle

intro:
Hopefully helpful guide to using your subversion repository to automatically populate your Moodle 'Files'

content:

  1. Figure out where your documents for the files are stored.  You can find this out by looking in your config file for <code>$CFG->dataroot</code>.  The config file can be found in your main moodle directory (for debian its /usr/share/moodle)
  2. Go to your data directory.  You'll see a directory for each module you have added files to.  The directory is named with the module number. 
  3. If you want to use the files for a module that isn't there yet, upload a placeholder file from the in-moodle file interface, and the directory will be created.
  4. Check out your code somewhere central, and link from each required module directory to that checked out copy
  5. Update the checked out copy as and when required, or set up a cron job to do it regularly for you
  6. You'll then be able to see the files from the file interface and use them with your course materials
Technorati Tags:

Comments

Post new comment

The content of this field is kept private and will not be shown publicly.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd> <img>
  • Lines and paragraphs break automatically.

More information about formatting options

CAPTCHA
We don't take kindly to automated nonsensible adverts around here.