[TYPO3-english] Change title and meta description

Jigal van Hemert jigal.van.hemert at typo3.org
Sun May 29 10:03:42 CEST 2016


Hi,

On 26/05/2016 22:04, Éric Thibault wrote:
> We have a user_int extension working in 6.2.25 to output records and
> we would like to modifiy the title of the page and insert a meta
> description per record.
>

For the title I'd try:
$GLOBALS['TSFE']->getPageRenderer()->setTitle($my_haeder);

For meta tags you can't use the ->addMetaTag() function because the meta 
tags can't be changed by uncached plug-ins.
You can however add something to the header data by calling
$GLOBALS['TSFE']->getPageRenderer()->addHeaderData($my_meta_tag);


-- 
Jigal van Hemert
TYPO3 CMS Active Contributor

TYPO3 .... inspiring people to share!
Get involved: typo3.org


More information about the TYPO3-english mailing list