[Typo3] Typoscript:html,php and javascript

Peter Klein peter at umloud.dk
Tue Dec 6 15:02:32 CET 2005


Hi bamba.. Just put it all on one line, like this:


lib.blahblah = COA
lib.blahblah {
  10 = TEXT
  10.value = <a href="#" 
onclick="vHWin=window.open(\'typo3/alt_doc.php?edit[tt_content][-{field:uid}]=new&amp;noView=0&amp;returnUrl=close.html\',\'FEquickEditWindow\',\'width=540,height=400,status=0,menubar=0,scrollbars=1,resizable=1\');vHWin.focus();return 
false;"><img src="t3lib/gfx/new_record.gif" width="16" height="12" 
vspace="1" hspace="2" border="0" title="Nouvel enregistrement après" 
align="top" alt="" title="" /></a>
  10.insertData = 1
}

NOTE: The $uid,has been replaced with {field:uid} (which is then enabled 
using the insertData = 1)

-- 
Peter Klein/Umloud Untd


"bamba thiam" <mbthiam at gmail.com> skrev i en meddelelse 
news:mailman.4200.1133873473.24100.typo3-english at lists.netfielders.de...
> Hi Peter,
> I can take the content uid, but my problem is how to wrap all this code
> because it seems a bit complicated...or not?
> thanks
>
> 2005/12/6, Peter Klein <peter at umloud.dk>:
>>
>> Hi bamba???
>> Create a userfunction that outputs your Javascript/PHP, or convert the
>> $uid
>> part to typoscript if possible..
>>
>> --
>> Peter Klein/Umloud Untd
>>
>>
>> "bamba thiam" <mbthiam at gmail.com> skrev i en meddelelse
>> news:mailman.3885.1133796069.24100.typo3-english at lists.netfielders.de...
>> Hello guys,
>> I got a little question please.
>> How can i put this code below in my typoscript setup:
>>
>>
>>           <a href="#" onclick="vHWin=window.open
>>
>> (\'typo3/alt_doc.php?edit[tt_content][-'.$uid.']=new&amp;noView=0&amp;returnUrl=
>> close.html\'
>> ,\'FEquickEditWindow\',\'width=540,height=400,status=0,menubar=0,scrollbars=1,resizable=1\');vHWin.focus();return
>> false;"><img src="t3lib/gfx/new_record.gif" width="16" height="12"
>> vspace="1" hspace="2" border="0" title="Nouvel enregistrement apr?s"
>> align="top" alt="" title="" /></a>
>>
>>
>> with $uid the var where we put the content uid.
>> So we have some php,html and javascript codes in the code.
>> Thanks,Mosdef
>>
>>
>>
>>
>> _______________________________________________
>> Typo3-english mailing list
>> Typo3-english at lists.netfielders.de
>> http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-english
>>
>>
> 





More information about the TYPO3-english mailing list