[Flow] Fluid: How to count?

bernd wilke t3ng at bernd-wilke.net
Mon Nov 4 14:51:54 CET 2013


Am 04.11.13 13:17, schrieb Stephen Bungert:
> This is my viewhelper, in case it helps:
>
> https://gist.github.com/riscos/7301689

very restrictive :(

you can be more flexible with typoscript:

lib.math = TEXT
   lib.math {
   current = 1
   prioriCalc = 1
}

<f:format.number thousandsSeparator="."
                  decimalSeparator=","
                  decimals="1">
     <f:cObject typoscriptObjectPath="lib.math"
                data="{dlFile.originalResource.size}/1024/1024" /> MB
</f:format.number>

or:
<v:var.set name="total_width" 
value="{f:cObject(typoscriptObjectPath:'lib.math',data:'{total_width}+{actual_width}')}" 
/>

bernd
-- 
http://www.pi-phi.de/cheatsheet.html


More information about the Flow mailing list