Reputation: 1609
I am using Plone 4.2.4 on linux. I wish to display the size of the uploaded files and the folders created in the site. Is there some addon that can be plugged in easily to display the same in the tabular folder view?
Upvotes: 1
Views: 138
Reputation: 7819
Showing the file is quite easy: you simply need to customize the folder_tabular_view.pt
adding a new column.
The TAL expression for this should be something like item/getObjSize
.
Size of folders is not that easy because is a complex information: size of a container is the size of objects inside (probably: recursive).
You should override the getObjSize
catalog metadata for folders (See plone.indexer) but you must also trigger some event that reindex the whole subtree when some files are changed...
Can be complex. And slow.
Upvotes: 2