[TYPO3] Value from USER_INT as TEXT in gifbuilder
Gregor Agnes
ga at zwo3.de
Fri Nov 3 09:43:53 CET 2006
Gregor Agnes schrieb:
Just a hint concerning preUserFunc (thx to Stefan Soellner)
userValue1 = USER
userValue1 {
userFunc = user_MyClass->user_MyFunc
param1 = 1
param2 = 2
}
userValue2 = TEXT
userValue2 {
preUserFunc = user_MyClass->user_MyFunc
preUserFunc.param1 = 1
preUserFunc.param2 = 2
}
In contrast to userFunc, parameters have to be used as attribute on the preUserFunc, not on the object itselve.
> Hi Robert,
>
> thats it. It works with preUserFunc either, but I forgot to login in the
> FE. And the function only delivers a value if I am logged in....
>
> Thx for the hint
>
> Gregor
>
> Robert John de Stigter schrieb:
>> 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