Tonny, try removing or changing the value of |si(byte). It may be that it is tacking on the 'B' when the filesize attribute doesn't apply (as there isn't a file). If this ends up being the case you may want to write a section show statement to ensure the attribute is only displayed for entries that have a file associated with them.
Alex
Alex
[ bald_technologist on the IRC channel (irc.freenode.net): #eZpublish ]
Correct it was the |si(byte). Now I have tried with the following:
{1025|si(byte)}
{1025|si(byte,binary)}
{1025|si(byte,decimal)}
{1025|si(byte,none)}
{1025|si(byte,auto)} {1025|si(byte,mebi)}
But all of them give the same result. Now I have removed the feature, that shows what size the file have. It will be nice if someone could describe a solution?
Where attachment is the file attribute. Is it ok to simply do a section show without any checks on the actual content? Tried to use the is_empty but that did not work? And this version checking on file name: