[TYPO3-core] RFC: 0002901: API needed to write HTML tags into the FE header tags directly

Dmitry Dulepov dima at spamcop.net
Fri Mar 17 15:58:36 CET 2006


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi!

Franz Holzinger wrote:
>> - -1 because $GLOBALS['TSFE']->additionalHeaderData[] exists for this. If
>> I am wrong or you cannot use it, explain why, please.
>>
> I am  trying to use it of course:

Yes, I saw that you have these lines:

>         $this->JSCode = $this->additionalHeaderData['JSCode'];
>         $this->headerHTML = $this->additionalHeaderData['headerHTML'];
>         $this->JSImgCode = $this->additionalHeaderData['JSImgCode'];

But I do not understand why one more variable is needed.
additionaHeaderData is meant to contain HTML already. Why ajax or any
other extension cannot use:
	$GLOBALS['TSFE']['tx_ajax_pi1-js'] = $xjaxa->getJavaScript();
	$GLOBALS['TSFE']['tx_ajax_pi1-css'] = '<link ... />';

I already tried this in one my private extension, it works!

I see no reason to have one more variable and set value of this variable
to another variable later. My main reason for -1 is that TSFE already
very large. Why to expand it further if it does not give any new
functionality but just wraps existing?

I understand it with JSCode and JSImgCode, it is printed when necessary.
May be we should have another such solution for ajax or more generic
solution for optional html, which should be printed sometimes.

This headerHTML and function are just wrappers for additionaHeaderData.
They do not give any new functionality, the same can be achieved by
using additionalHeaderData directly.

Dmitry.
- --
"It is our choices, that show what we truly are,
far more than our abilities." (A.P.W.B.D.)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (MingW32)

iD8DBQFEGs6cRVcYnKJ8N6kRAu52AKCoaMGkEGO8aNMolIHaNFHKk6/O7wCfYNj3
1jJuWK9OM4wh1uIthUe6OE4=
=ycre
-----END PGP SIGNATURE-----



More information about the TYPO3-team-core mailing list