[TYPO3] gpvar into constants or setup? ... so close

Andrew Davis andrew at avagraphique.com
Wed Jun 6 15:42:36 CEST 2007


Thanks Tyler for advice, I have gotten this far and am now stuck...



temp.model = TEXT
temp.model.value = MODEL_VAL; plain; text: {GPvar:model}
temp.model.insertData = 1


plugin.tx_pilmailform_pi1.defaultValues < temp.model






I can output temp.model to page and I see it is replacing the gpvar as 
desired, but now it is not passing to the setup for the plugin....




the plugin setup should be seeing

plugin.tx_pilmailform_pi1.defaultValues{
   MODEL_VAL; plain; text: sometextthatispassed
}


Im not sure how this should be pased, i have tried many variations but 
nothing seems to be working....

Any suggestions are very welcome,
Thanks,
Andrew








Tyler Kraft wrote:
> Read TSref - you need to have something where you can access a getText 
> data type in order to get the gpvar like that.
> 
> 
> 
> Andrew Davis wrote:
>> Hi list,
>>
>> I am trying to pass a variable from url into extension tmailform.
>>
>> I see that in setup ts it can be passed to tmailform like this
>>
>> plugin.tx_pilmailform_pi1.defaultValues (
>>   FIELD_VAL; plain; text:This is what autofills
>> )
>>
>>
>> I want to do something like this, that will put the passed variable 
>> &value=whatever into the setup:
>>
>> plugin.tx_pilmailform_pi1.defaultValues (
>>   FIELD_VAL; plain; text:{GPvar:value}
>> )
>>
>> but it just fill in "{GPvar:value}" in the field (doesn't substitute 
>> the value from the url)
>>
>> I can set that to {$a_constant} so it looks like
>>
>> plugin.tx_pilmailform_pi1.defaultValues (
>>   FIELD_VAL; plain; text:{$a_constant}
>> )
>>
>>
>> and it will correctly fill in my constant there....
>>
>> but then how can I set a constant to be the url variable?
>>
>> in constants i have tried
>>
>> a_constant = {GPvar:value}
>>
>> but it just sets it as the text "{GPvar:value}"... same problem as 
>> before.
>>
>>
>> is there any solution here?
>>
>> thanks in advance for any help,
>> Andrew
>>
>>
>>
>>


More information about the TYPO3-english mailing list