[TYPO3] Change HTML-header for certain pages

Peter Klein peter at umloud.dk
Sun May 28 20:06:52 CEST 2006


Hi Heiner. You could use CONDITIONS. Something like this:

[globalVar = TSFE:id = 12]
page.headerData.10 = TEXT
page.headerData.10.value = <script src="fileadmin/scripts/12.js" 
type="text/javascript"></script>
[GLOBAL]

[globalVar = TSFE:id = 34]
page.headerData.10 = TEXT
page.headerData.10.value = <script src="fileadmin/scripts/34.js" 
type="text/javascript"></script>
[GLOBAL]

etc

---
Peter Klein / Umloud Untd

"Heiner Lamprecht" <heiner at heiner-lamprecht.net> wrote in message 
news:mailman.2520.1148825456.22948.typo3-english at lists.netfielders.de...
> Hi,
>
> I have a complete TS-based template.
>
> Now, I would like to include some special JavaScript-files in the
> html-header of certain pages.  They should not be included in any
> other pages, and every script file shall only be included in one
> page each.
>
> What is the best approach for this?
>
> The best would be something like:
>
> if($pid = 12 || $pid = 34 | $pid = 56) {
>  include("fileadmin/scripts/$pid.html")
> }
>
> It's pseudo code, so how to translate to TS?
>
>
> Thanks,
>
>
>    Heiner
>
> -- 
>    heiner at heiner-lamprecht dot net    GnuPG - Key: 9859E373
>  Fingerprint:  3770 7947 F917 94EF 8717 BADB 0139 7554 9859 E373 





More information about the TYPO3-english mailing list