Feature #27091

Viewhelpers for strtolower/strtoupper

Added by Georg Ringer about 4 years ago. Updated about 2 years ago.

Status:Closed Start date:2011-05-27
Priority:Should have Due date:
Assigned To:- % Done:

0%

Category:ViewHelpers
Target version:-
Has patch:Yes

Description

I would like to see 2 viewhelpers for strtolower() and strtoupper().

At the first this maybe sounds silly because this can be solved with CSS but this is not entirly true. There are languages (e.g. greek) where doing a simple "text-transform:uppercase" will be stupid because this can change the meaning of the text. The reason is because CSS is stupid and doesn't take the locale into account but PHP does.

StrtolowerViewHelper.php Magnifier (2.2 kB) Georg Ringer, 2011-05-27 16:23

StrtoupperViewHelper.php Magnifier (2.2 kB) Georg Ringer, 2011-05-27 16:23


Related issues

duplicated by TYPO3.Fluid - Feature #44572: Format.Case ViewHelper in order to change the case of str... Resolved 2013-01-16

History

#2 Updated by Stefan Neufeind about 4 years ago

How about ucfirst or ucwords then as well? (We lately had that topic regarding csConv for TYPO3 v4.)
And shouldn't we then use one ViewHelper for them all? Some name like "caseconv" with a mode-setting?

#3 Updated by Georg Ringer about 4 years ago

good idea!

#4 Updated by Andreas Wolf about 2 years ago

As #44572 has been resolved, this could be closed.

#5 Updated by Adrian Föder about 2 years ago

  • Status changed from New to Resolved

Good catch Andreas, thanks!

#6 Updated by Bastian Waidelich about 2 years ago

  • Status changed from Resolved to Closed

I just set the status to "closed" so we don't have two tickets resolving the same issue

Also available in: Atom PDF