[TYPO3-UG Italy] javascript nell head

Mauro Lorenzutti mauro.lorenzutti at webformat.com
Wed Apr 5 12:41:11 CEST 2006


Ciao Daniele,

Wednesday, April 5, 2006, 12:31:31 PM, you wrote:

> Ciao a tutti,
> se provo ad inserire del Javascript nell'Head del template html, Typo3
> cancella tutto e sostituisce l'head con i suoi stili e javascript.
> Come posso fare per aggiungere dei miei script, senza che questi vengano
> sostituiti????

Per aggiungere del codice negli header puoi usare l'opzione headerData
dell'oggetto page:
http://typo3.org/documentation/document-library/references/doc_core_tsref/current/view/7/5/

Ad es:
page.headerData.10 = TEXT
page.headerData.10.insertData=1
page.headerData.10.value = codice javascript
page.headerData.10.wrap2 = <script ...> | </stript>

dove prima hai definito
page = PAGE

Spero risolva il tuo problema.

Saluti,
 Mauro Lorenzutti


e-mail:  mauro.lorenzutti at webformat.com

---------------------------------------------------------
WEBFORMAT srl | Corte Europa, 12 | I-33097 SPILIMBERGO PN
     Tel +39-0427-926.389  --  Fax +39-0427-927.653
       info at webformat.com  --  www.webformat.com
---------------------------------------------------------




More information about the TYPO3-UG-italy mailing list