Task #68756

Add config "base" to stdWrap

Added by Manuel Selbach about 4 years ago. Updated 12 months ago.

Status:
Closed
Priority:
Should have
Category:
-
Target version:
-
Start date:
2015-08-05
Due date:
% Done:

100%

TYPO3 Version:
7
PHP Version:
Tags:
Complexity:
Sprint Focus:

Description

Follow up: #22175

The following function was updated and added with a new optional parameter $base:
TYPO3\CMS\Core\Utility\GeneralUtility::formatSize($sizeInBytes, $labels = '', $base = 0)

This impacts the function:
TYPO3\CMS\Frontend\ContentObject\ContentObjectRenderer->stdWrap_bytes

It is not possible now, to set the base parameter via TypoScript if you add custom labels.


Related issues

Related to TYPO3 Core - Task #70932: stdWrap_bytes.base ignored in certain cases Closed 2015-10-21

Associated revisions

Revision fc999ebc (diff)
Added by Manuel Selbach about 4 years ago

[FEATURE] Make "base" of stdWrap_bytes configurable

It is possible now to set the base parameter via TypoScript to define
a base (1000 or 1024) to calculate with if you add custom labels for file
sizes. This allows proper handling of KB/KiB etc.

Resolves: #68756
Releases: master
Change-Id: I345d4584117ac83cd9d49f0ecda0dc2f686ac7ed
Reviewed-on: http://review.typo3.org/42274
Reviewed-by: Andreas Wolf <>
Tested-by: Andreas Wolf <>
Reviewed-by: Christian Kuhn <>
Tested-by: Christian Kuhn <>

History

#1 Updated by Daniel Maier about 4 years ago

  • Status changed from New to In Progress

#2 Updated by Gerrit Code Review about 4 years ago

  • Status changed from In Progress to Under Review

Patch set 3 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/42274

#3 Updated by Gerrit Code Review about 4 years ago

Patch set 4 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/42274

#4 Updated by Gerrit Code Review about 4 years ago

Patch set 5 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/42274

#5 Updated by Manuel Selbach about 4 years ago

  • Status changed from Under Review to Resolved
  • % Done changed from 0 to 100

#6 Updated by Anja Leichsenring over 3 years ago

  • Sprint Focus deleted (On Location Sprint)

#7 Updated by Benni Mack 12 months ago

  • Status changed from Resolved to Closed

Also available in: Atom PDF