[TYPO3-mvc] new feature proposal: f:format.crop returns whole if set to 0

Bastian Waidelich bastian at typo3.org
Mon Mar 7 15:55:09 CET 2011


Stefano Cecere wrote:

Hi Stefano,

> hi,
> i see that the .crop function hasn't an option to NOT crop
>
> i often need to set it to "NOT CROP" anything, without major changes in
> TS, or Fluid templates.

As Peter, I'd suggest the pragmatic approach here: Setting the value to 
a sufficient high enough number (If you use validator annotations you 
usually know the highest possible number anyways).

Apart from that I'm also fine with 0 = disable cropping. But - as the 
view helper is just a wrapper for the respective cObject function - this 
functionality should be implemented in the core IMO.

Best,
Bastian


More information about the TYPO3-project-typo3v4mvc mailing list