File block, add file size

Permalink
Hi
I have added some PDF downloads to a clients site using the File block, they are now asking if its possible to add the file size to the download link. Anybody know any code that I can add to make this work.

Thanks.

 
madeforspace replied on at Permalink Reply
madeforspace
Sorry I don't know any code but other community members may well, I do know there are other ways of doing what you want.
There are a couple of blocks that I think will do what you need in the Market Place, below is a link to one of them.

Hope that helps

http://www.concrete5.org/marketplace/addons/fileimage-details/...
oakleafg replied on at Permalink Reply
Cheers, I had seen those blocks but as I have already set up a long list of downloadable PDFs I don't fancy doing them all again, it was tedious doing it first time round!!
Would be great if I could just add a bit of code in view.php that would just automatically add the size to whats already there.

In hindsight I should have purchased the block that adds the download from a Set in the File Manager as that would have been perfect.
madeforspace replied on at Permalink Reply
madeforspace
Could you not just assign all the PDF's to a set in File Manager?
There is a block which will build your list from a file set which you can then add to a page in your site.
Are all the files in different locations on the site? That would be a problem :(
I have never used this block but I am guessing this may work for you?
http://www.concrete5.org/marketplace/addons/downloads-list/...

If any community members have any code or other suggestions could they post them here please.