#99837Support stdWrap.if for config.showWebsiteTitle
Description
Now that the new TypoScript option “showWebsiteTitle” exists, setting its value based on conditions would provide more flexibility.
Think of a setup where the website title is set for all pages, such as ‘ The page title – ACME Incorporated ‘.
When providing a SEO-optimized title for a particular page, adding the website title as a suffix (or prefix) often enough is no longer reasonable: the title’s length* is then needed for Keywords, benefits, and a Call-To-Action (e.g. ‘ TYPO3: Secure & Flexible Websites | Try Demo now! | ACME ‘).
*Remember: the title length is limited. Long titles will be trimmed in Search Engine Result Pages (and browser tabs).
It would therefore be useful setting the website title as a default, which is omitted if a SEO title is given.
Example TypoScript:
config {
pageTitleFirst = 1
pageTitleSeparator = |
pageTitleSeparator.noTrimWrap = | | |
showWebsiteTitle = 0
showWebsiteTitle.if.isTrue.data = page:seo_title
}
I already prepared a small patch which would add this behavior.
Reviews 1
Related issues 1
History 78
-
Gerrit Code Review pushed patch set 1 for main to change 77708 status
NewUnder Review 02/06/23, 06:41 -
Sebastian Klein commented 02/06/23, 07:03
-
Georg Ringer changed Related to #97653 06/24/24, 15:12
-
Georg Ringer commented and changed status
Under ReviewNew 06/24/24, 15:13as the 1st attempt has been abendon, setting it back to new.
-
Markus Timtner commented 09/17/25, 11:27
Any news on this ?
-
Georg Ringer commented 09/17/25, 11:29
TBH: why still using stdwrap here? especially since e.g. #107358
-
Markus Timtner commented 09/17/25, 11:33
Yeah, found another way to solve this, simply by TS condition syntax:
[page["seo_title"] != ""] config.showWebsiteTitle = 0 [global]Can be closed now, or?
Best regards from FRA!
-
Georg Ringer commented and changed status
NewClosed 09/17/25, 11:45closing the issue as there are alternative solutions now and seems not that much need for more TS
With this change, one could, for example, also add a new toggle to page properties to let editors disable the website title, if needed.