Details
-
Improvement
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
2.5.1
-
MOODLE_25_STABLE
-
MOODLE_30_STABLE
-
Description
The file resource should have an option to display the date when the file has been uploaded and/or modified.
Example :
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.
(More :
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 :
return $details;
replaced by
$res = $DB->get_record('resource', array('id'=>$resource->id), "timemodified");
return "(uploaded on ".date("d/m/Y", $res->timemodified).") ".$details;
Attachments
Issue Links
- Testing discovered
-
MDL-51888 Refinements to mod_resource option to display uploaded date
-
- Closed
-