File block template
Permalink Browser Info Environment
Hello again.
I will update some of the files on my site on a regular basis and I will do that by using the replace function in file manager (practically adding a version of that file) in order to maintain a history for that file..
The Pixel templates for File block show the date of the original file (1st version).
Is there any way to show the date of the version in use (usually the last version)?
Thanks.
I will update some of the files on my site on a regular basis and I will do that by using the replace function in file manager (practically adding a version of that file) in order to maintain a history for that file..
The Pixel templates for File block show the date of the original file (1st version).
<i class='fa fa-calendar'></i> <?php echo Core::make('helper/date')->formatDate($f->getDateAdded()) ?>;
Is there any way to show the date of the version in use (usually the last version)?
Thanks.
Type: | Discussion |
---|---|
Status: | Resolved |
You can replace $f with $f->getRecentVersion() in your template:
to