21278 Posts in 5728 Topics by 2599 members
|
Page:
1
|
Go to End | |
| Author | Topic: | 113 Views |
-
Automatically adding file size to a linked file

14 September 2012 at 9:17am
Looking through the documentation, I see that you can get the size of a file with $File.Size. However, I would like to automatically add the file size when the admin adds a link to the file in the CMS. For example:
<a title="Population" href="http://.../assets/Factsheets/Population-Change.pdf" target="_blank">Estimated total NZ population temporal trend</a>
changed to:
<a title="Population" href="http://.../assets/Factsheets/Population-Change.pdf" target="_blank">Estimated total NZ population temporal trend (2.1MB)</a> (the file size added in brackets)
automagically, i.e., without the user having to find the file size and manually add it.
Possible?
Graeme
| 113 Views | ||
|
Page:
1
|
Go to Top |

