Project

General

Profile

Actions

Bug #66582

closed

Can't Set Page Title After Update In Extbase Controller

Added by Kai Hechler over 9 years ago. Updated almost 9 years ago.

Status:
Rejected
Priority:
Should have
Assignee:
-
Category:
Extbase
Target version:
-
Start date:
2015-04-24
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
6.2
PHP Version:
5.5
Tags:
Complexity:
Is Regression:
No
Sprint Focus:

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?

Actions #1

Updated by Wouter Wolters over 9 years ago

  • Assignee deleted (TYPO3 Release Team)
Actions #2

Updated by Kai Hechler over 9 years ago

  • 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
Actions #3

Updated by Markus Klein about 9 years ago

  • 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.

Actions #4

Updated by Helmut Hummel about 9 years ago

  • Status changed from Needs Feedback to Rejected
Actions #5

Updated by Numa Schmeder almost 9 years ago

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.

Actions

Also available in: Atom PDF