Feature #4459

Add PaddingViewHelper

Added by Bastian Waidelich almost 6 years ago. Updated almost 5 years ago.

Status:Resolved Start date:2009-09-04
Priority:Could have Due date:
Assigned To:Bastian Waidelich % Done:

100%

Category:ViewHelpers
Target version:-
Has patch:

Description

A PaddingViewHelper can be useful to format strings, especially in text/xml templates. It is a wrapper for PHPs str_pad function and can be used like this:

<f:format.padding padLength="10" padString="-=">TYPO3</f:format.padding>

->
TYPO3-=-=-

Patch follows.

Associated revisions

Revision c0d0f79d
Added by Bastian Waidelich almost 6 years ago

[~TASK] Fluid: tweaked exception that is thrown when trying to iterate through non-traversable objects in ForViewHelper
[~TASK] Fluid: fixed typo in ForViewHelperTest
[+FEATURE] Fluid: added CycleViewHelper. Resolves #4458
[+FEATURE] Fluid: added GroupedForViewHelper. Resolves #4460
[+TASK] Fluid: added test case for PaddingViewHelper. Relates to #4459

History

#1 Updated by Sebastian Kurfuerst almost 6 years ago

  • Status changed from New to Accepted

#2 Updated by Sebastian Kurfuerst almost 6 years ago

  • Status changed from Accepted to Resolved
  • % Done changed from 0 to 100

backported to v4 as well.

#3 Updated by Bastian Waidelich almost 6 years ago

in r3169

Also available in: Atom PDF