Moodle quiz with audio : How to give path to the audio file using $CFG? -
i developer working on first moodle project. have create quiz audio question. have checked forums steps , try. how refer audio file ? how can use $cfg indicate path audio file ?
please help. moodle version 2.8
is single hard-coded audio file in moodle code directory? if $cfg->wwwroot.'/path/to/file'.
if file uploaded question created, $cfg won't help, need use moodle files api -https://docs.moodle.org/dev/file_api can take bit of getting used to, not bad once you've got hang of it.
Comments
Post a Comment