[TYPO3-dev] Page title as cObject
Rik Willems
rik at actiview.nl
Thu Feb 10 20:30:18 CET 2011
Hi,
Currently we can combine config.noPageTitle = 2 and page.headerData.5 =
TEXT (COA) to create a custom <title> tag for our pages. This works, but
not for indexers (in my case Solr). This is because this technique
doesn't actually change the page title for TYPO3, but only the output.
tt_news changes the page title for single view by:
$GLOBALS['TSFE']->page['title'] = $row['title'];
$GLOBALS['TSFE']->indexedDocTitle = $row['title'];
When I use typoscript to display lists or records on pages the page
title for TYPO3 remains the title of the page it is shown on. For the
Solr indexer (and perhaps the indexed_search indexer too) this is very
uncomfortable. The search results all display the same titles.
Would it be a good idea to create an option to render the page title
through a cObject? Now I used config.titleTagFunction to use a
userfunction which is a bit of a detour.
What do you think?
Cheers!
More information about the TYPO3-dev
mailing list