TYPO3Jack.net - Das TYPO3 Mailinglist Forum Archiv

TYPO3 Mailingliste: nicht fragen - lesen!

TYPO3 Mailingliste: nicht fragen - lesen!_RR_1-->
Zurück   TYPO3Jack.net - Das TYPO3 Mailinglist Forum Archiv > TYPO3-Mailinglists: ENGLISH > typo3-english@lists.netfielders.de

Registrieren Hilfe Benutzerliste Kalender Suchen Heutige Beiträge Alle Foren als gelesen markieren
  #1  
Alt 06.06.2007, 06:22
Andrew Davis
Gast
 
Beiträge: n/a
Standard [TYPO3] gpvar into constants or setup?

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




_______________________________________________
TYPO3-english mailing list
TYPO3-english (AT) lists (DOT) netfielders.de
http://lists.netfielders.de/cgi-bin/.../typo3-english
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Wong this Post!Spurl this Post!Reddit! Diesen Post bei linksilo.de bookmarken!
  #2  
Alt 06.06.2007, 12:56
Tyler Kraft
Gast
 
Beiträge: n/a
Standard Re: [TYPO3] gpvar into constants or setup?

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
>
>
>
>

_______________________________________________
TYPO3-english mailing list
TYPO3-english (AT) lists (DOT) netfielders.de
http://lists.netfielders.de/cgi-bin/.../typo3-english
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Wong this Post!Spurl this Post!Reddit! Diesen Post bei linksilo.de bookmarken!
  #3  
Alt 06.06.2007, 15:42
Andrew Davis
Gast
 
Beiträge: n/a
Standard Re: [TYPO3] gpvar into constants or setup? ... so close

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
>>
>>
>>
>>

_______________________________________________
TYPO3-english mailing list
TYPO3-english (AT) lists (DOT) netfielders.de
http://lists.netfielders.de/cgi-bin/.../typo3-english
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Wong this Post!Spurl this Post!Reddit! Diesen Post bei linksilo.de bookmarken!
  #4  
Alt 06.06.2007, 15:59
JoH asenau
Gast
 
Beiträge: n/a
Standard Re: [TYPO3] gpvar into constants or setup? ... so close

> 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


_______________________________________________
TYPO3-english mailing list
TYPO3-english (AT) lists (DOT) netfielders.de
http://lists.netfielders.de/cgi-bin/.../typo3-english
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Wong this Post!Spurl this Post!Reddit! Diesen Post bei linksilo.de bookmarken!
  #5  
Alt 06.06.2007, 16:12
Andrew Davis
Gast
 
Beiträge: n/a
Standard Re: [TYPO3] gpvar into constants or setup? ... so close

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
>

_______________________________________________
TYPO3-english mailing list
TYPO3-english (AT) lists (DOT) netfielders.de
http://lists.netfielders.de/cgi-bin/.../typo3-english
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Wong this Post!Spurl this Post!Reddit! Diesen Post bei linksilo.de bookmarken!
  #6  
Alt 06.06.2007, 16:35
JoH asenau
Gast
 
Beiträge: n/a
Standard Re: [TYPO3] gpvar into constants or setup? ... so close

> 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,


Well anything else will not work.
You got to do it with pure PHP or implement the TS functionality again using
pure PHP.
So the last chance you got, is to ask the developer of this extension if he
will implement this for you, else your final option always will be to pay
someone for the job.

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


_______________________________________________
TYPO3-english mailing list
TYPO3-english (AT) lists (DOT) netfielders.de
http://lists.netfielders.de/cgi-bin/.../typo3-english
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Wong this Post!Spurl this Post!Reddit! Diesen Post bei linksilo.de bookmarken!
  #7  
Alt 06.06.2007, 16:56
Andrew Davis
Gast
 
Beiträge: n/a
Standard Re: [TYPO3] gpvar into constants or setup? ... so close

> So the last chance you got, is to ask the developer of this extension if he
> will implement this for you, else your final option always will be to pay
> someone for the job.
>
>



interested?


a
_______________________________________________
TYPO3-english mailing list
TYPO3-english (AT) lists (DOT) netfielders.de
http://lists.netfielders.de/cgi-bin/.../typo3-english
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Wong this Post!Spurl this Post!Reddit! Diesen Post bei linksilo.de bookmarken!
 

Lesezeichen

Themen-Optionen
Ansicht Thema bewerten
Thema bewerten:

Forumregeln
Es ist dir nicht erlaubt, neue Themen zu verfassen.
Es ist dir nicht erlaubt, auf Beiträge zu antworten.
Es ist dir nicht erlaubt, Anhänge hochzuladen.
Es ist dir nicht erlaubt, deine Beiträge zu bearbeiten.

BB-Code ist an.
Smileys sind an.
[IMG] Code ist an.
HTML-Code ist aus.
Trackbacks are an
Pingbacks are an
Refbacks are an


Ähnliche Themen

Thema Autor Forum Antworten Letzter Beitrag
[TYPO3-german] GPvar in extension verwenden Joscha Feth typo3-german@lists.netfielders.de 2 15.05.2007 00:40
[TYPO3-german] Constants Redakteuren zuweisen Stefan Pink typo3-german@lists.netfielders.de 3 18.04.2007 14:01
[TYPO3-dev] Global Variable/Constants Al Chuck typo3-dev@lists.netfielders.de 0 27.03.2007 03:08
[TYPO3] GPvar not a string? Benjamin Todd typo3-english@lists.netfielders.de 5 21.02.2007 13:39
[TYPO3] When I move code from a static template to the constants /setup sections, the page does not display everything Anthony Caskey typo3-english@lists.netfielders.de 0 18.12.2006 17:10


Alle Zeitangaben in WEZ +1. Es ist jetzt 07:50 Uhr.


Powered by vBulletin® Version 3.7.4 (Deutsch)
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.1.0
Template-Modifikationen durch TMS

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75