Feature #27091

Viewhelpers for strtolower/strtoupper

Added by Georg Ringer over 10 years ago. Updated over 8 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
ViewHelpers
Target version:
-
Start date:
2011-05-27
Due date:
% Done:

0%

Estimated time:
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.


Files

StrtolowerViewHelper.php (2.22 KB) StrtolowerViewHelper.php Georg Ringer, 2011-05-27 16:23
StrtoupperViewHelper.php (2.23 KB) StrtoupperViewHelper.php Georg Ringer, 2011-05-27 16:23

Related issues

Has duplicate TYPO3.Fluid - Feature #44572: Format.Case ViewHelper in order to change the case of string valuesResolvedAdrian Föder2013-01-16

Actions
#2

Updated by Stefan Neufeind over 10 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 over 10 years ago

good idea!

#4

Updated by Andreas Wolf over 8 years ago

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

#5

Updated by Adrian Föder over 8 years ago

  • Status changed from New to Resolved

Good catch Andreas, thanks!

#6

Updated by Bastian Waidelich over 8 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