[TYPO3-dev] meta data from plugin

Søren Malling soren.malling at gmail.com
Wed Feb 2 09:26:18 CET 2011


Hi Bart,

Have a look at tt_news and how it sets the <title> tag equals to the
news entry. You should be able to reuse that in the case you want to
:)

Regards,

Søren Malling

TYPO3 Brugergruppe Danmark: www.typo3danmark.dk
Twitter: twitter.com/sorenmalling



On Wed, Feb 2, 2011 at 9:17 AM, Bart van den Burg <bart at samson-it.nl> wrote:
> 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
> _______________________________________________
> TYPO3-dev mailing list
> TYPO3-dev at lists.typo3.org
> http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-dev
>




More information about the TYPO3-dev mailing list