[TYPO3] gpvar into constants or setup? ... so close
Andrew Davis
andrew at avagraphique.com
Wed Jun 6 16:12:05 CEST 2007
Hi,
is it possible to set a value for a constant using ts in setup?
plugin.tx_pilmailform_pi1.defaultValues{
MODEL_VAL; plain; text: {$constant}
}
will replace with the constant text... but i need to pass the url var to
the $constant
sorry to leave so many posts, I am just trying to figure this out. I
wish i were a more experienced php programmer, i would do as you suggest
and add stdwrap function to the extension, but unfortunately that is
beyond me and beyond my time constraint.
any help much appreciated,
andrew
JoH asenau wrote:
>> 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....
>
> Of course not, since defaultValues is just an Array that will be parsed by
> the plugin functions. Taking a look at the PHP code shows there's no stdWrap
> property for "defaultValues", so you simply can't fill in any data using the
> getText method even if you try using a workaround with a TEXT element.
>
> if there is no
> defaultValues.dataWrap = {GPvar:whatever}
> there will be no
> defaultValues.cObject = TEXT too
>
> which means: It's impossible unless you change the PHP code of the plugin to
> accept stdWrap properties here. It would be good practice if the developers
> would always add stdWrap to any of their properties, but unfortunately most
> of them don't ...
>
> HTH
>
> Joey
>
More information about the TYPO3-english
mailing list