[TYPO3-english] 2 Problemas with TS mailform snippet: GPvar and input-field

Bert Hiddink hiddink at bendoo.com
Fri Dec 5 14:23:41 CET 2008


Hello!

Please have a look at the following snippet:

response.form = FORM
response.form < tt_content.mailform.20
response.form {
   stdWrap.innerWrap.cObject = COA
   stdWrap.innerWrap.cObject {
     10 = TEXT
     # Here the value is printed correctly INSIDE the mailform!
     10.value = <h2>The GPvar value is "{GPvar:tx_ttnews|tt_news}"</h2>
     10.insertData=1
   }
    dataArray {

     # Problem 1:
     # Input field "thisisthefieldname" gets printed
     # AFTER the mailform is rendered...
     999.label = Vacancy:
     999.type=thisisthefieldname=input
     999.value.cObject = COA
     999.value.cObject {
       10=CONTENT
       10{
         table=tt_news
         select.pidInList = 45
         # Problem 2:
         # Here the value of {GPvar:tx_ttnews|tt_news} is NOT printed! 

         select.where = uid = {GPvar:tx_ttnews|tt_news}
         select.where.insertData=1
         renderObj=COA
         #read the title
         renderObj.10=TEXT
         renderObj.10{
           field=title
         }
       }
     }
     999.value.insertData=1
   }
}
tt_content.mailform.20  < response.form


Any ideas why the GPvar-value is not printed in the where-clause and 
why the 999-object is printed after the FORM?

Many thanks in advance!

Regards,

Bert


-- 


Vriendelijke groeten,
Bert Hiddink

---------------------
BENDOO e-work solutions
Harterinkdijk 8
7065 AR SINDEREN
The Netherlands
Tel. 0315 244525
http://www.bendoo.nl
hiddink at bendoo.nl
---------------------


More information about the TYPO3-english mailing list