[TYPO3-dev] meta data from plugin
Martin Weissen
martin.weissen at me.com
Tue Feb 1 17:57:47 CET 2011
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
More information about the TYPO3-dev
mailing list