[TYPO3-UG Dutch] rekenen met Typoscript

Emiel Nijpels Emiel.Nijpels at vara.nl
Wed Dec 3 09:33:01 CET 2008


Door er onder de typoscript regel:

10.som.prioriCalc = intval

toe te voegen voert typo3 de berekening uit en geeft een integer terug.

Met vriendelijke groet,

Emiel Nijpels

-----Oorspronkelijk bericht-----
Van: typo3-ug-dutch-bounces at lists.netfielders.de [mailto:typo3-ug-dutch-bounces at lists.netfielders.de] Namens Erwin Winkel
Verzonden: dinsdag 2 december 2008 22:54
Aan: typo3-ug-dutch at lists.netfielders.de
Onderwerp: [TYPO3-UG Dutch] rekenen met Typoscript

Hallo usergroup,
ik heb het volgende probleem(pje): Ik wil een simpele berekening uitvoeren
in Typoscript. In TSRef kwam ik het volgende tegen (sectie 1.3):

*Calculating values (+calc):*

*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.*
*Example:*

*45 + 34 * 2  = 158 (which is the same as this is ordinary arithmetic:
(45+34)*2=158 )*
Hieruit maak ik op dat het mogelijk moet zijn om een sommetje te maken.
Echter, ik heb geen idee hoe ik dit moet implementeren. Hoe 'zet' ik een
datatype?
Als ik dit probeer:

10.som = TEXT
10.som.value = 10*5

krijg ik als antwoord: 10*5 (wat te verwachten was). Hoe krijg ik het juiste
antwoord '50'?
In de documentatie wordt er verder geen woord over gerept.
Weet iemand hier iets meer over?
Alvast erg bedankt voor alle info.
Groet,
erwin

--
"Time flies like an arrow, fruit flies like a banana!"
_______________________________________________
TYPO3-UG-dutch mailing list
TYPO3-UG-dutch at lists.netfielders.de
http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-ug-dutch

De informatie verzonden met en of in dit e-mail bericht is uitsluitend bestemd voor de geadresseerde(n). Gebruik van deze informatie door anderen dan geadresseerde(n) is verboden, behoudens indien en voorzover anders is aangegeven. Openbaarmaking, vermenigvuldiging, verspreiding, en/of verstrekking van deze informatie aan derden is NIET toegestaan, behoudens indien en voorzover anders is aangegeven. Omroepvereniging VARA staat niet in voor de juiste en volledige overbrenging van de inhoud van een verzonden e-mail, noch voor tijdige ontvangst daarvan.

The information contained in this e-mail is confidential and may be legally privileged. It is intended solely for the use of the individual or entity to whom it is addressed and others authorised to receive it. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution or taking any action in reliance on the contents of this information is strictly prohibited and may be unlawful, unless and as far as otherwise is indicated in the contents. Vara is neither liable for the proper nor complete transmission of the information contained in this communication nor for any delay in its receipt.


More information about the TYPO3-UG-dutch mailing list