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

JoH asenau info at cybercraft.de
Wed Jun 6 15:59:17 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....

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

-- 
Wenn man keine Ahnung hat: Einfach mal Fresse halten!
(If you have no clues: simply shut your gob sometimes!)
Dieter Nuhr, German comedian
openBC/Xing: http://www.cybercraft.de
T3 cookbook: http://www.typo3experts.com




More information about the TYPO3-english mailing list