Closed (fixed)
Project:
File Tree
Version:
7.x-2.2
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
25 Apr 2013 at 17:59 UTC
Updated:
18 Feb 2014 at 08:50 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
jochen wendebaum commentedYes, I would also like to see that.. :)
Comment #2
c3rberus commentedAny progress on this? Would be very useful if we could pull this information in.
Comment #3
ataxia commentedThis would be an (even more) amazing module if it would display the size and date for individual files as well as the file count and number of subdirectories in each directory. I have a requirement to make this happen, so if I use your module as a launching point, I'll let you know.
Thanks!
Comment #4
jochen wendebaum commentedUsing php's filesize, I modified the module to add the filesize in a human readable way to each file.
Patch attached. Needs review!
Comment #5
joelstein commentedThanks for the ideas. I added the %size, %created, and %modified tokens. The %size token uses Drupal's format_size. There is now a File Tree date type (at admin/config/regional/date-time), which is used to format the %created and %modified tokens.
I also added a way for you add text outside of the link. So, for example, now you can do something like this:
[filetree dir="some-directory" fileformat="%link - %size"]
Committed to D7 branch. D6 back port coming shortly.
https://drupal.org/commitlog/commit/16200/32e2e0fef49351c3f4c0aab6d4d45b...
https://drupal.org/commitlog/commit/16200/c6ef0cef19eae18c1827f8290a9343...
Comment #6
jochen wendebaum commentedThis works very nicely, thanks!
This module is getting better and better!!