[TYPO3-dev] Changing page title from plugin
Iffland, Sebastian
Sebastian.Iffland at ecom-ex.com
Wed Apr 10 13:36:53 CEST 2013
Hi Philipp,
Try out these, should work as expected:
$GLOBALS['TSFE']->indexedDocTitle = trim($newTitle, '
-'); $GLOBALS['TSFE']->cObj->data['title'] = trim($newTitle, ' -');
$GLOBALS['TSFE']->page['title'] = trim($newTitle, ' -');
Regards,
Sebastian
Am 4/10/13 1:26 PM schrieb "Philipp" unter <philippwrann at gmx.at>:
>Hey, i think its real basic stuff but i just cant do it.... How do i set
>meta tags from my action?
>
>none of the following does the job....
>
>$GLOBALS= 'FOO';
>$GLOBALS['TSFE']->indexedDocTitle = 'FOO';
>$GLOBALS['TSFE']->indexedPageTitle = 'FOO';
>$GLOBALS['TSFE']->getPageRenderer()->setTitle('title test 12');
>$GLOBALS['TSFE']->getPageRenderer()->addMetaTag('<meta name="author"
>content"TEST" />');
>
>TYPO3 Version is 6.0.3
>_______________________________________________
>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