[TYPO3] Value from USER_INT as TEXT in gifbuilder
Gregor Agnes
ga at zwo3.de
Mon Apr 3 13:55:36 CEST 2006
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
More information about the TYPO3-english
mailing list