Feature #90396
closedPageTitle API: possibility to remove site title from SEO title
0%
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.
Updated by Richard Haeser over 3 years ago
- Status changed from New to Closed
Updated by Richard Haeser over 3 years ago
- Is duplicate of Feature #88771: Page Title Templates added