[TYPO3] Value from USER_INT as TEXT in gifbuilder

Robert John de Stigter robertjohn at bedrijvenweb.nl
Mon Apr 3 14:04:15 CEST 2006


Hi Gregor,

Try postUserFunc.

I use the following and it works for me. 

12 = TEXT
12 {
    text.postUserFunc = user_myclass->myfunction
    offset = 19,14
    fontSize = 10
    fontColor = White
    fontFile = fileadmin/fonts/verdana.ttf    
}

Cheers,
Robert

-----Oorspronkelijk bericht-----
Van: typo3-english-bounces at lists.netfielders.de
[mailto:typo3-english-bounces at lists.netfielders.de] Namens Gregor Agnes
Verzonden: maandag 3 april 2006 13:56
Aan: typo3-english at lists.netfielders.de
Onderwerp: [TYPO3] Value from USER_INT as TEXT in gifbuilder

Hi,

I created an Extension which works so far....

On a special place on the page I need the value of a function of that
Extension as Text in a gifbuilder object.
I tried hard, but I don't get it working.

How can I copy the value of an user-function in a Text-Object?


includeLibs.zaehler =
typo3conf/ext/bicycle_tour/pi2/class.tx_bicycletour_pi1.php
temp.zaehler = USER_INT
temp.zaehler.userFunc = tx_bicycletour_pi2->get_kilometers
## I could let this, but with this information you know how my function
is called.


temp.mainTemplate {
     # Feeding the content from the Auto-parser to the TEMPLATE cObject:
   template =< plugin.tx_automaketemplate_pi1
     # Select only the content between the <body>-tags
   workOnSubpart = DOKUMENT
     # Substitute the ###KM###:
   marks.KM = IMAGE
   marks.KM {
     alttext.value = temp.zahler
     file = GIFBUILDER
     file {
XY = 200,300
   backColor = olive

   20 = TEXT
   20.text.preUserFunc < tx_bicycletour_pi2->get_kilometers
### That's the place where should happen s.t. but what???
   20.fontFile = typo3conf/ext/bicycle_tour/res/fonts/Digit.ttf
   20.offset = 10,10
       }
     }
   }
}
page.10 < temp.mainTemplate

Thx for any support and best regards

Gregor
_______________________________________________
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