Bug #66582
closed
Can't Set Page Title After Update In Extbase Controller
Added by Kai Hechler over 9 years ago.
Updated over 8 years ago.
Description
Hello,
in the controller of my Extbase extensions, in an uncached show action, I used something like...
$GLOBALS['TSFE']->page['title'] = 'My Wonderful Page Title';
...to change, (who would have thought it?!), the page title. What works fine for version 6.2.9. But after the update to 6.2.12 my code seems to be ignored and the page title is, like usual, the name of the page.
I read the release notes, but didn't find anything. Is it bug or am I just missing something?
- Assignee deleted (
TYPO3 Release Team)
- Target version deleted (
6.2.12)
Just if someone else has the same Problem. I found out, it works when I use:
$GLOBALS['TSFE']->getPageRenderer()->setTitle('My Wonderful Page Title')
and also set the typoscript setup
config.noPageTitle = 2
- Status changed from New to Needs Feedback
The correct way to set a page title is:
$GLOBALS['TSFE']->altPageTitle = 'foo';
Anything else will break at some point, depending on the "cachability" of the page.
Some bugs in the Core have been resolved with 6.2.14.
- Status changed from Needs Feedback to Rejected
If an extbase action is set as non cacheable and the plugin seobasics is installed and config.noPageTitle=2, then modifying the title using altPageTitle doesn't work.
But it does work for cacheable actions!
if you remove seobasics headerdata and change noPageTitle = 0 it will work.
It seems the overlay of seobasics title field doesn't take the correct title value for non cacheable actions, but it does for cacheable actions.
Also available in: Atom
PDF