[TYPO3-dev] Adding meta tags in Extension?

Martin Kutschker martin.kutschker-n0spam at no5pam-blackbox.net
Thu Aug 31 21:41:39 CEST 2006


Heiner Lamprecht schrieb:
> On Thursday 31 August 2006 13:55, Dmitry Dulepov wrote:
>> Hi!
>>
>> Heiner Lamprecht wrote:
>>> I'm looking for a possibility to add meta tags to a page from
>>> within my extension.  I'm writing an extension that displays
>>> images on a page and would like to add the keywords from the
>>> DAM backend to the meta tags of that page.
>> $GLOBALS['TSFE']->config['config']['additionalHeaders']
>>
>> Read about config.additionalHeaders format in TSRef.
> 
> The documentation talks about HTTP-headers, like redirection, not 
> about meta tags in the HTML head.
> 
> I tried to write the keywords in $GLOBALS['TSFE']->page['keywords'].  
> But it seems, that the output is already created, before my 
> extension adds the new keywords. ;-(

Beware that you cannot change the HTML header from a USER_INT object. 
THe reason is that during the time the USER_INT code is executed the 
HTML header is already generated and cached.

Masi




More information about the TYPO3-dev mailing list