[Typo3] pass 2 values from 10.data to userfunc
Tyler Kraft
headhunterxiii at yahoo.ca
Thu Jul 28 20:04:13 CEST 2005
any one try this yet? I'm curious if it worked?
Tyler Kraft wrote:
> Hi
>
> I'm not sure what your trying to do with your php class but a two things
> to look at:
>
>
> 1) try the file with a .inc extension not a .php extension (see TSref ->
> php_script)?
>
> 2) what about stdwrap option of postUserFunc?
>
>
> As there is no std wrap for the USER maybe try to create as a COA and
> manipulte it in your script
>
>
> includeLibs.abc = fileadmin/includes/class.user_abc.inc
>
> lib.linkmarker= COA
> lib.linkmarker {
> 10.1 = HTML
> 10.1{
> value = {field:field_listtext}
> insertData = 1
> wrap= |,
> }
> 10.2 = HTML
> 10.2{
> value = {field:field_url}
> insertData = 1
> }
> 10.postUserFunc=user_linkmarker->main
> }
>
>
> I think that might then pass into your script two values from fields as
> a comma seperated list. Its all justa guess so let us know if it works.
>
> hth
> Tyler
>
>
> Carlos Rodriguez wrote:
>
>> Hi all,
>>
>> I have the following code:
>>
>> includeLibs.abc = fileadmin/includes/class.user_abc.php
>>
>> lib.abc = COA
>> lib.abc {
>> 10 = USER
>> 10.userFunc = user_linkmarker->main
>> 10.data= field:field_listtext,field:field_url
>> }
>>
>> When I look at my page the value of 10.data is
>> "field:field_listtext,field:field_url" NOT the values of this fields.
>>
>> What do I miss? Whats the prob?
>>
>> Even when I try "10.data= field:field_listtext" instead the problem
>> is, that NOT the value of "field:field_listtext" is passed but only
>> the string "field:field_listtext" is passed. Why?
>>
>> What do I miss? Whats the prob?
>>
>> Tahnks
More information about the TYPO3-english
mailing list