[TYPO3-core] RFC: Feature Request #8487: Enable configuration of filesize labels for CType uploads

Oliver Hader oliver at typo3.org
Wed Jun 4 23:59:39 CEST 2008


Hi Ernesto,

Ernesto Baschny [cron IT] schrieb:
> I am ok with that, but it "breaks compatibility". I would tend to agree 
> that the old default " | K| M| G" is not really good, but this is how it 
> was displayed until now and maybe some web-design "breaks" if this 
> string gets longer.
> 
> Even better would be to pass $fileD['filesize'] through stdWrap, 
> something like:
> 
>     $this->cObj->stdWrap($fileD['filesize'], $conf['filesize.']);
> 
> and have a default in TypoScript:
> 
>     filesize.bytes = 1
>     filesize.bytes.label = {$styles.content.uploads.filesize.labels}
> 
> (note: bytes is a stdWrap function that calls t3lib_div::formatSize) 
> This should provides enough flexibility to format the sizes of the files 
> the way the user wants it.
> 
> So I +1 on the change (either "new property" or my stdWrap suggestion), 
> but only if that part is included in TypoScript in a compatVersion 4.3 
> section.

I changed the labels back to the old default " | K| M| G". Thus, I think 
the compat version is not necessary anymore, is it? Furthermore I took 
your sdtWrap suggestion. New patch is attached...

olly
-- 
Oliver Hader
TYPO3 4.3 Release Manager
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0008487_v3.patch
Type: text/x-patch
Size: 2505 bytes
Desc: not available
Url : http://lists.netfielders.de/pipermail/typo3-team-core/attachments/20080604/eee19849/attachment.bin 


More information about the TYPO3-team-core mailing list