#90396PageTitle API: possibility to remove site title from SEO title
Description
Goal:
When I set an individual SEO title for a page, I want to be able to remove the default site title (which was set in Site Configuration).
Example:
Say, your page would by default have a title like “Current page title: ACME Incorporated”.
“ACME Incorporated” is loaded from the new website title configuration in the Sites module (Feature #85592). The colon is the default pageTitleSeparator.
For an optimised page, I now want the SEO title “Get this awesome product from ACME”. The website title and pageTitleSeparator should not be appended here at all.
Until now I got the desired result with some TypoScript:
// For pages:
config {
pageTitle.noTrimWrap = ## | ACME Incorporated#
pageTitle.noTrimWrap.splitChar = #
pageTitle.noTrimWrap.if.isFalse.data = page:seo_title
}
// and for EXT:news:
[request.getQueryParams() ['tx_news_pi1'] > 0]
config.pageTitle.noTrimWrap.if.isFalse {
data >
dataWrap = DB:tx_news_domain_model_news:{GP:tx_news_pi1|news}:alternative_title
wrap3 = {|}
insertData = 1
}
[end]
In TYPO3 v10, this TypoScript would continue to work, as long as I don’t use the new website title configuration.
It would be nice to configure this with TypoScript or some other way.
Reviews 0
No change resolves or names this issue in its commit message, and no comment links one.
History 4
-
Richard Haeser commented and changed status
NewClosed <span data-processor="relativetime" data-value="2021-01-31T10:26:13+00:00" > 01/31/21, 10:26 </span> -
Richard Haeser changed Duplicates #88771 <span data-processor="relativetime" data-value="2021-01-31T10:26:30+00:00" > 01/31/21, 10:26 </span>
-
Christian Weiske commented <span data-processor="relativetime" data-value="2026-06-29T09:46:25+00:00" > 06/29/26, 09:46 </span>
TYPO3 v12+ have
config.showWebsiteTitle = 0that disables the website title in the html page title.https://docs.typo3.org/permalink/t3tsref:confval-config-showwebsitetitle
-
Sebastian Klein commented <span data-processor="relativetime" data-value="2026-06-29T14:40:20+00:00" > 06/29/26, 14:40 </span>
Christian Weiske wrote in #note-3:
> TYPO3 v12+ haveconfig.showWebsiteTitle = 0that disables the website title in the html page title.
>
> https://docs.typo3.org/permalink/t3tsref:confval-config-showwebsitetitleThis issue is no longer relevant. Please note that I began to add
stdWrapfunctionality toconfig.showWebsiteTitlewith #99837, but it was rejected (see review patch comments). A possible solution is to use a condition to control website title rendering, as mentioned in #99837#note-7.
This is one of the reasons I started #88771. Will work on this in the near future. I will close this issue and will continue to work on #88771.