Here is my problem...I have multiple sections of the same course and I want to share files between them. (So I would like to not have to upload the same file twice.) I know there is a way to add Site Files, but what do you do if the instructor of the course is not a Moodle admin? (Since only admins can add site files.) Help me!
In your "moodledata" folder (or whatever the moodle data folder is named) there will be a numbered subfolder for the site itself plus one for each course section. In my case, I have 5 courses, so I have sub-folders in moodledata named 1, 2, 3, 4, 5, and 6. If you want to share files among all the courses, you need to make another subfolder in moodledata - I called mine sitefiles. You will put all the files you want to share in that folder.
To actually share these files, however, you need to create a "symbolic link" inside each of the numbered folders that points to the sitefiles folders. Symbolic links in Linux are much like the shortcuts in Windows. To create them for my example get into the command line and:
Navigate to the folder named 1 using the cd command and then type
ln -s ../sitefiles
(The "ln" command by the way starts with the letter L, not the number 1).
This will create a symbolic link named sitefiles inside your 1 folder that will point to the actual sitefiles folder that you created earlier.
Now, repeat the steps above for each of your remaining numbered folders and you will be all set. The one danger in this is that any instructor in your course can not only use the files in the sitefiles folder, but they can also add to and delete them from there as well. You will need to make sure all of your instuctors are aware of this and are careful.
If you don't have shell access to your server, I don't know of a way to create symbolic links. That of course, does not necessarily mean there is not a way. Perhaps someone else knows if it is possible.
Also, there have been other posts about this topic. Just search for symbolic or symbolic links and you will find them.
Thank you so much! I do have shell access, so I will give it a try.
Is there a way to do this linking of common files in Windows? I just set up EasyPHP on my notebook and when I restored my backed-up courses each course had the whole sharedfolders folder (that is the folders and their contents were duplicated rather than linked). When I tried to change the folders to a link, it didn't work.
Please see the screenshots:
We had the same problem sharing the same file tru other courses. What we do is to upload the same file all over to the said course thus data redundant. Is there a feature in moodle that does this thing sharing a public and a private file system?