[TYPO3] Math in TypoScript

Stano Paška stano.paska at gmail.com
Thu Feb 22 16:05:09 CET 2007


Hi,

you can read more about it here:
http://www.mgwebservice.de/uploads/media/TS_by_example.pdf
on page 55

I think +calc can be done only on some special properties (defined in TSRef)

Stano.

On 2/22/07, Bertalan Fodor <berfod at organum.hu> wrote:
> I have read this place more times. I still don't understand how this
> relates to my problem. It states the following:
>
> "Sometimes a datatype is set to "something +calc". "+calc" indicates
> that the value is calculated with "+-/*". Be aware that the operators
> has no "weight". The calculation is done in the order of the operators."
>
> So I have a constant:
>
> x = 15
>
> I want to have an other constant with the value x+3
>
> How does "sometimes" "datatype is set" "+calc" come to here?
>
> Where is the datatype? How is it set? Should I write +calc somewhere?
>
> Thanks,
>
> Bert
>
>
> Dmitry Dulepov i'rta:
> > Bertalan Fodor wrote:
> >> Note I'm trying to define constants calculated from each other.
> >>
> >> Do you know that there is information about what I need in TSRef, or
> >> do you only hope so? I have searched in TSRef for the word "calcul",
> >> and have read everything. So did I try setting x2 = 13 + 5, but didn't
> >> work.
> >
> > http://typo3.org/documentation/document-library/references/doc_core_tsref/4.0.0/view/3/1/#id2796759
> >
> >
> _______________________________________________
> TYPO3-english mailing list
> TYPO3-english at lists.netfielders.de
> http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-english
>


More information about the TYPO3-english mailing list