Affects Version/s: 2.5.1
Fix Version/s: 3.0
Create a file resource and upload a file
Go to the settings page for the resource and check Show upload/modified date
View the course page and the upload date for the file will be shown
Repeat this for all combinations of 'Show size', 'Show type' and 'Show upload/modified date'
Pull from Repository:
Pull Master Branch:
Pull Master Diff URL:
The file resource should have an option to display the date when the file has been uploaded and/or modified.
Summary.pdf (uploaded on 2013/07/23) 4.7MB PDF document
Students have a better user experience if they can see when the file has been uploaded or modified. The block Recent activity does not show the uploaded date.
This feature can be added to other resource like "page" or "folder".
I understand displaying this information can be a problem (when the description of the resource is changed, the date is updated while the file is still the same) but it helps student to identify which files is "new" for them.
Combined with the log table, we can also display an personnalized message like "You have never downloaded this file", "You have already downloaded this file" or "The file or its description has been updated since you accessed this file".)
I begun to code this feature just to have an idea (it is not a clean code) :
File mod/resource/locallib.php, original line 333 :
$res = $DB->get_record('resource', array('id'=>$resource->id), "timemodified");
return "(uploaded on ".date("d/m/Y", $res->timemodified).") ".$details;