Bug #25368
closed
crop and cropHTML doesn't crop if "maxCharacters" is equal or lower than first word
Added by Armin Vieweg over 13 years ago.
Updated about 7 years ago.
Description
Like described in ticket for format.crop viewhelper for fluid (http://forge.typo3.org/issues/11583), the crop and cropHTML method in class.tslib_content.php, doesn't crop if maxCharacters is equal or lower than the stringlength of first word.
Please see some examples in original ticket.
Thanks!
Armin
(issue imported from #M18003)
Files
Pending in Gerrit:
https://review.typo3.org/#change,1274
How to test:
Add a cropHTML to a TEXT object, and crop before the end of the first word.
Before the change, the whole value is returned, instead of the cropped version.
Example TS to test:
page = PAGE
page.typeNum = 0
page.10 = TEXT
page.10.value=Example text
page.10.cropHTML=6|...|1
Patch set 3 of change I0a7ec720b12a7999245b183f36daff5cdd7a8ace has been pushed to the review server.
It is available at http://review.typo3.org/1274
Patch set 1 of change I96446430bd0681e9f64c699bca9f80866a712490 has been pushed to the review server.
It is available at http://review.typo3.org/1955
- Status changed from New to Resolved
- % Done changed from 0 to 100
- Category set to TypoScript
- Target version changed from 0 to 4.5.4
- TYPO3 Version set to 4.5
- Status changed from Resolved to Closed
Also available in: Atom
PDF