Issue Feature Closed

#99837Support stdWrap.if for config.showWebsiteTitle

Sebastian Klein 02/06/23, 06:15 updated 09/17/25, 11:45

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

History 78

  1. Gerrit Code Review pushed patch set 1 for main to change 77708 status New Under Review 02/06/23, 06:41

  2. Sebastian Klein commented 02/06/23, 07:03

    With this change, one could, for example, also add a new toggle to page properties to let editors disable the website title, if needed.

  3. Georg Ringer changed Related to #97653 06/24/24, 15:12

  4. Georg Ringer commented and changed status Under Review New 06/24/24, 15:13

    as the 1st attempt has been abendon, setting it back to new.

  5. Markus Timtner commented 09/17/25, 11:27

    Any news on this ?

  6. Georg Ringer commented 09/17/25, 11:29

    TBH: why still using stdwrap here? especially since e.g. #107358

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

  8. Georg Ringer commented and changed status New Closed 09/17/25, 11:45

    closing the issue as there are alternative solutions now and seems not that much need for more TS