Hi,
The %asset_file_size_readable% keyword displays file sizes in lowercase (kb, mb) but I would like to display them like this: kB and MB. Just wondering if there is a way to do this (maybe by using another keyword?)
Thanks!
There is no way to change that.
Hi Greg. Is this something that can be corrected by Squiz then? 'kb' means kilobits, 'kB' is the correct abbreviation.
If it was a localisable string you could make it whatever you wanted. Devs, is that a feasible feature request?
Can you log a bug for this? We should be using the proper SI prefixes.
While on the topic, can keywords be used in a standard page? For example, in a list of links to PDF files one of the lines might be:
<li><a title="whatever" href="file.pdf">Whatever document (PDF %asset_file_size%)</a></li>
[quote]While on the topic, can keywords be used in a standard page? For example, in a list of links to PDF files one of the lines might be:
<li><a title=“whatever” href=“file.pdf”>Whatever document (PDF %asset_file_size%)</a></li>[/quote]
Not in the current version of Matrix. A feature was added to the development version for you to be able to use keywords in one asset that point to a another asset. You can see this newsletter for more details.
I don't know how to do this (and the search doesn't return results on three letter words).
We have a handy-dandy Bug Tracker. :)
[quote]Hi,
The %asset_file_size_readable% keyword displays file sizes in lowercase (kb, mb) but I would like to display them like this: kB and MB. Just wondering if there is a way to do this (maybe by using another keyword?)
Thanks![/quote]
You could at least use CSS to make MB in caps.
exactly. something like:
[codebox].filesize {
text-transform: uppercase;
}[/codebox]