Bug #93605
closedNo way to disable page title per page
0%
Description
Contrary to TYPO3 8 and before, TYPO3 9/10 doesn't allow to disable page titles on a per page base. It's only possible to add your own page title provider on top of the stack of existing page title providers.
Problem:
In Aimeos, we generate the HTML header code for the Aimeos pages ourselves including the page title and this leads to a duplicate title tag esp. in the HTML of the shop list and detail pages served by TYPO3. There's no known workaround yet because adding our own page title provider that returns an empty title doesn't solve the problem. We also don't have access in the page title provider to the product data without fetching the product again from the database decreasing performance.
Updated by Benni Mack over 3 years ago
- Status changed from New to Needs Feedback
Dear Aimeos no-last-name-given,
Can you elaborate how you managed to disable page titles in TYPO3 v8?
Updated by Aimeos no-lastname-given over 3 years ago
It's still in the docs:
https://docs.typo3.org/m/typo3/reference-typoscript/master/en-us/Setup/Config/Index.html#nopagetitle
It was possible to set config.noPageTitle=2 to disable it completely:
https://github.com/aimeos/aimeos-typo3/blob/2017.10/Classes/Controller/CatalogController.php#L105-L107
Updated by Benni Mack over 3 years ago
Aimeos no-lastname-given wrote in #note-2:
It's still in the docs:
https://docs.typo3.org/m/typo3/reference-typoscript/master/en-us/Setup/Config/Index.html#nopagetitleIt was possible to set config.noPageTitle=2 to disable it completely:
https://github.com/aimeos/aimeos-typo3/blob/2017.10/Classes/Controller/CatalogController.php#L105-L107
Ah, via TypoScript. Thanks for the info!
Updated by Benni Mack over 3 years ago
- Status changed from Needs Feedback to Accepted
Updated by Richard Haeser over 3 years ago
- Status changed from Accepted to Needs Feedback
Hi,
I don't have any issue disabling the page title by typoscript. It is still possible to disable it with config.noPageTitle=2
. We even have automatic tests to check that this behaviour is still available. Are you sure the typoscript is set correctly?
Updated by Aimeos no-lastname-given over 3 years ago
You are right, I considered config.noPageTitle as not supported any more after the new PageTitle provider API has been introduced but it still works. Sorry, my fault.
Updated by Benni Mack over 3 years ago
- Status changed from Needs Feedback to Closed