Bug #8646

CropProcessor should respect pre/suffix string in calculation of maximum characters

Added by Bastian Waidelich almost 3 years ago. Updated 11 months ago.

Status:Closed Start date:2010-07-04
Priority:Must have Due date:
Assignee:Karsten Dambekalns % Done:

0%

Category:_old
Target version:-
Votes: 0

Description

Right now the Crop TypoScript processor adds the configured pre/suffix string to the cropped string resulting in a string that exceeds the maximumCharacter setting. Instead it should subtract the length of the pre/suffix string from maximumCharacters as it happens in the v4 crop function


Related issues

related to TYPO3.Fluid - Bug #8648: format.crop ViewHelper should support all features of the... New 2010-07-04
related to TYPO3.TypoScript - Task #8647: CropProcessor should correctly crop HTML content Closed 2010-07-04

History

Updated by Bastian Waidelich almost 2 years ago

  • Assignee deleted (Bastian Waidelich)

Updated by Stefan Neufeind almost 2 years ago

Is it subtracted anywhere in v4? Had a look at t3lib/class.t3lib_cs.php (crop) and typo3/sysext/cms/tslib/class.tslib_content.php (crop) which don't take that length into account. The latter is what is used by the fluid-cropviewhelper for v4.

Updated by Sebastian Kurfuerst over 1 year ago

  • Project changed from TYPO3.Neos to TYPO3.TypoScript
  • Category deleted (TypoScript)

Updated by Sebastian Kurfuerst 11 months ago

  • Category set to _old

Updated by Karsten Dambekalns 11 months ago

  • Assignee set to Karsten Dambekalns

Updated by Karsten Dambekalns 11 months ago

  • Status changed from New to Closed

Also available in: Atom PDF