[TYPO3-core] RFC Feature #9923: Integrate possibility to define additional header data via TypoScript

Oliver Hader oliver at typo3.org
Fri Jun 26 10:02:36 CEST 2009


Hi Steffen,

Steffen Kamper schrieb:
> Hi olly,
> 
> why isn't it possible?
> 
> page,headerData is an object that can be used with any objects just as
> in your examples.

Yes, but this works only on a PAGE object. I does not work out of the
box, when you install an extension that provides additional header data.
The plugin always has to modify $TSFE->additionalHeaderData in PHP, but
there is no way to do it automatially via a static template.

Imagine that someone defined his main page like this:

website = PAGE

If you provide a static template with

page.includeJS.file = ...

it won't work...

> Additionally may be have a look to the new header class. I think we
> should go away from the freeText usage of javascript and CSS because it
> makes it impossible to have control on it later on.

Additional header data is not only about CSS and JS, you could also
define redirects or whatever...

> Therefore i suggested methods to include js and styles. After that you
> have all javascript and css gathered, may postprocess, compress, reorder
> or whatever. This is impossible with headerData where you don't know
> whats in.

Yes, I agree to have specific methods for adding CSS and JS in this
situation.

olly
-- 
Oliver Hader
TYPO3 Release Manager 4.3


More information about the TYPO3-team-core mailing list