Course File Area

Repositories ::: repository_coursefilearea
Maintained by Me !Tim Williams
Part of set Course files.
Course file storage repository for Moodle 2, which replicates the Moodle 1.x course files functionality.
Latest release:
230 sites
17 downloads
8 fans
Current versions available: 3
This repository plugin provides a course file storage area within Moodle 2+ which is similar in function to the Course Files functionality in Moodle 1.x, using the same numbered directories within the moodle data directory.

This repository is capable of operating as both an internal and external files repository,
although the internal capability is disabled by default. If the internal files capability
is enabled on a normal Moodle system then any files used will be copied into the new Moodle 2+ file structure.

You will also need to install the "Repository File Manager" on your Moodle to make use of this plugin.

Screenshots

Screenshot #0

Contributors

Me !
Tim Williams (Lead maintainer)
Please login to view contributors details and/or to contact them

Comments RSS

Comments

  • Me !
    Tue, 3 Apr 2012, 5:52 PM
    There will be some further updates to this plugin and the associated Repository file manager block, unfortunatly I'm currently snowed under with a non-moodle project, so I don't have much time for this. I am also intending to upgrade the repo to take advantage of the file API improvements which are upcomming in Moodle 2.3.
  • Justin Litalien
    Mon, 16 Apr 2012, 8:53 PM
    Thanks Tim for the update. I'll keep this on the backburner for the time being. Don't give up the fight! This will be a great addition smile
  • Me !
    Thu, 21 June 2012, 11:20 PM
    This plug in has now been fixed for Moodle 2.2 and 2.3, available from our website now and submitted for approval here.
  • Me !
    Thu, 28 June 2012, 11:38 PM
    The install bug for versions of Moodle <2.3 has now been fixed in the latest release (2012062802)
  • Jean Pierre Ducassou
    Fri, 10 Aug 2012, 10:00 PM
    Hi Tim, nice plugin!!! Great work indeed.
    We installed in our campus the latest version of your plugin (2012062802) on moodle 2.2.3+ (2011120503.02) but we had to modify it in order to make ir work properly.
    In our case the problem is the oposite of what Tõnis Tartes describes, on function get_course of coursefilearea/lib.php, the condition ($CFG->version > 2011120500) is true so the current course is get from $USER->currentcourseaccess[0], so it return always the same course ("the first").
    So for a teacher with several courses it shows the same files across all his courses.
    Using the old way (from global $COURSE) solves the problem.
    Maybe the condition is wrong? Any ideas?
    I hope I made myself clear.
    By the way, do you have a git repo we can clone? Can you publish you plugin on github?
    Thanks,
    JP

  • Urs Giezendanner
    Mon, 27 Aug 2012, 4:17 AM
    I installed the plugin and it works quit well. but i get the following Error:
    Strict Standards: Declaration of repository_coursefilearea_abs::type_config_form() should be compatible with that of repository::type_config_form() in /moodle/repository/coursefilearea/lib23.php on line 8 Strict Standards: Declaration of repository_coursefilearea::get_listing() should be compatible with that of repository::get_listing() in /moodle/repository/coursefilearea/lib.php on line 38
    Any idea?
    Regards Urs
  • Me !
    Tue, 28 Aug 2012, 7:28 PM
    Jean Pierre : I'm intrigued that $COURSE is working for you in 2.2.3+, the reason fro the change to $USER->currentcourseaccess[0] in Moodle 2.2+ is because $COURSE->id always comes back as 1 on my server (I reported this bug here: http://tracker.moodle.org/browse/MDL-32969, but Moodle HQ don't seem to be too interested in fixing it), no matter what course the user is actually in, while $USER->currentcourseaccess[0] always gave the correct result, so if you are seeing the opposite in Moodle 2.2, then this is most mysterious. I'm planning to have a dig into the Moodle code at some point soon to see if I can fix MDL-32969 myself, but I've not gotten to it yet.

    There isn't currently a git/github version (I'm a very committed SVN user), although this may happen at some point it's not a priority at the moment.

    Urs: Is this preventing any functions of the repo from working? An incompatible change was made to the Repository API in Moodle 2.3, I suspect this warning is a result of the technique I was forced to use in order to support both the pre Moodle 2.3 and Moodle 2.3 versions of the Repository API within the same codebase. That said, I'll put this on my to-do list to see if I can cure the warning, it's possible there has been a further change in Moodle 2.3 which has triggered this warning.
  • Paul
    Mon, 1 Oct 2012, 5:46 PM
    I should like to also ask if this plugin will allow the linking of files. What I am really looking for, and have been for some time, is a repository plug in the really allows me to perform the same function as I currently do when I upload files to my FTP server, and then link to them using a URL.
    The problem with this system is it is difficult for course administrators since they do not always know the paths to the files.
    Is it possible for someone to produce a repository system that allows the files to not be imported into the Moodle system as such in order that when a file is updated in the repository, it is also updated in Moodle live on-line. A sort of Dynamic Repository if you like.

    many thanks,
    Paul
  • Me !
    Tue, 2 Oct 2012, 4:49 AM
    Paul, what you describe is more or less how this plugin works, it generates a web link to the file in the repository and if the file is then changed, that change is immediatly reflected in the moodle resource. I wrote this addon in order to solve the problem you describe.
  • Steve Bond
    Tue, 18 Dec 2012, 1:30 AM
    Hi, I like this plugin but a bit worried about lack of backup. When I backup a course containing this repository, then restore it, the files in the repository are all gone. Is that by design - or do you plan to add a backup facility?
  • Me !
    Wed, 19 Dec 2012, 4:14 AM
    Hello Steve,

    I would like to add backup, but unfortunately the moodle 2 backup system can't act on the contents of an external repository, so getting this to tie into the regular backup system is impossible (I've tried...). The reccomended backup method is to use the zip function of the Repository file manager to save or restore the content of any give course area.
  • Me !
    Mon, 4 Feb 2013, 12:45 AM
    Sam, the plugin can't update a file in the central repository (I have yet to find a way to do this...). However, if you use the plugin an an external repo, the you are effectively linking to an single copy of a file.

    Bei: That might be down to the $COURSE problems mentioned earlier in this thread, I've had a similar problem when testing against Moodle 2.4. This will be fixed in the next release, which I should be uploading very soon.
  • Robert G
    Wed, 27 Feb 2013, 2:48 AM
    Hi, I am running Moodle 2.4 and using the Course File Area repository. I uploaded an image using it and i was able to view the image directly at the link it created here: /repository/coursefilearea/file.php/1/ads/fundamentals_180x150_EN.jpg.

    However, when i embed this image into an html block using img src it will not display. Has anyone run into this or know how i can fix it? Thanks.
  • Alex Julian
    Mon, 6 May 2013, 5:04 PM
    Hi, Please, Can I create service to search, and copy from this repository?
  • Camilo Ernesto Quintana Martínez
    Wed, 5 Mar 2014, 6:25 AM
    Hi,

    How delete or uninstall this repository?

    Tanks smile
Please login to post comments