[TYPO3-dev] meta data from plugin

Bart van den Burg bart at samson-it.nl
Wed Feb 2 09:17:38 CET 2011


Op 1-2-2011 17:57, Martin Weissen schreef:
> Hi Bart
>
>> I wish to set meta description and meta keywords from within my plugin, but I don't quite understand how...
>>
>> In my main template setup i have the following two lines:
>>
>> page.meta.keywords.field = keywords
>> page.meta.description.field = description
> Have you tried to override these values in your extension?
>
> $GLOBALS['TSFE']->page['meta.']['keywords.'] = 'mykeyword1, mykeyword2';
>
> Untested, but should work if you remove the lines from your setup.
>
>
> Cheers
> Martin

Doesn't work, unfortunately. Nothing appears in the HEAD section of the 
page...

Regards,
Bart




More information about the TYPO3-dev mailing list