Suggestion #7653

calculation

Added by Nikolas Hagelstein about 12 years ago. Updated over 11 years ago.

Status:
Resolved
Priority:
Could have
Start date:
2010-05-05
Due date:
% Done:

20%

Estimated time:
Has patch:
Tags:

Description

Something like: {whatever - 1} or {operand1 - operand2} would be great.

A calculation viewhelper would be sufficient as well.

e.g. :
<f:calculate operand1="{something}" operand2="{somethingElse}" operator="-" />


Files

CalculationViewHelper.php (6.48 KB) CalculationViewHelper.php view helper Christian Müller, 2010-07-02 08:59
CalculationViewHelperTest.php (2.41 KB) CalculationViewHelperTest.php test case Christian Müller, 2010-07-02 08:59
#1

Updated by Christian Müller almost 12 years ago

  • Category set to ViewHelpers
  • Assignee set to Christian Müller
#2

Updated by Christian Müller almost 12 years ago

  • File CalculationViewHelper.php added
  • % Done changed from 0 to 20

first version upload, drop into Fluid/Classes/ViewHelpers/ and see comments in file for examples.
IMPORTANT: This file is made for FLOW3, should be easy to adapt for TYPO3 4.x with fluid but will not run out of the box.

#4

Updated by Christian Müller almost 12 years ago

  • File deleted (CalculationViewHelper.php)
#5

Updated by Bastian Waidelich almost 12 years ago

  • Tracker changed from Feature to Suggestion
  • Project changed from TYPO3.Fluid to Fluid - ViewHelper - Incubator
  • Category deleted (ViewHelpers)
#6

Updated by Christian Müller almost 12 years ago

  • Status changed from New to Accepted
#7

Updated by Bastian Waidelich almost 12 years ago

  • Subject changed from Add basic calculation capabilities. to calculation
#8

Updated by Bastian Waidelich almost 12 years ago

  • Assignee changed from Christian Müller to Bastian Waidelich
#9

Updated by Bastian Waidelich almost 12 years ago

  • Status changed from Accepted to Resolved
  • Assignee changed from Bastian Waidelich to Christian Müller

The ViewHelper is now part of the Incubator distribution (v4 & v5)

#10

Updated by Simon Schaufelberger over 11 years ago

  • Assignee changed from Christian Müller to Bastian Waidelich

Bastian Waidelich wrote:

The ViewHelper is now part of the Incubator distribution (v4 & v5)

Hi Bastian ,
I was searching for that viewhelper in TYPO3 4.4.4 but i cannot find it. Where is it hidden?
This Viewhelper should also go into the fluid package of TYPO3! Please before the release of TYPO3 4.5 so that it comes with 4.5!

#11

Updated by Bastian Waidelich over 11 years ago

Simon Schaufelberger wrote:

The ViewHelper is now part of the Incubator distribution (v4 & v5)

I was searching for that viewhelper in TYPO3 4.4.4 but i cannot find it. Where is it hidden?

Hi Simon.
What do you mean? The Calculation ViewHelper is part of the Incubator distribution. See http://forge.typo3.org/projects/package-viewhelperincubator/wiki/Fluid_ViewHelper_Incubator
It won't be part of the Fluid core for now.

Also available in: Atom PDF