Changing the name of course data directory

Changing the name of course data directory

Steve Lovidge發表於
Number of replies: 3

Hi

I want to change the name of the course data directory (when it's created) so the name reflects the title of the course instead of the course id number.

Does anyone no what file I should look at and the code in the file?

Cheers Steve 

評比平均分數: -
In reply to Steve Lovidge

Re: Changing the name of course data directory

Dan Stowell發表於
That would be an awful lot of effort. I would avoid it if I were you.

There's no single file that defines that behaviour - it is assumed throughout all the scripts...!
In reply to Steve Lovidge

Re: Changing the name of course data directory

Steve Hyndman發表於

If you let Moodle create it when you installed, then you should find it in the same place as your moodle directory--on the same level.

It will be called moodle_data (or something real similiar...been a while since I've done this). All you need to do is rename the directory and then open your config.php file in your moodle directory and change the name there. That's it.

Keep in mind that the install directions recommends that you place this directory outside the public_html directory for security reasons. If you do that, just change the location in the config.php file as well.

Steve