Project

General

Profile

Actions

Feature #99837

open

Support stdWrap.if for config.showWebsiteTitle

Added by Sebastian Klein over 1 year ago. Updated 25 days ago.

Status:
New
Priority:
Should have
Assignee:
-
Category:
Frontend
Target version:
-
Start date:
2023-02-06
Due date:
% Done:

0%

Estimated time:
PHP Version:
Tags:
Complexity:
Sprint Focus:

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.


Related issues 1 (0 open1 closed)

Related to TYPO3 Core - Feature #97653: Add option to not render website title in title tagClosed2022-05-18

Actions
Actions #1

Updated by Gerrit Code Review over 1 year ago

  • Status changed from New to Under Review

Patch set 1 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/77708

Actions #2

Updated by Sebastian Klein over 1 year ago

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

Actions #3

Updated by Georg Ringer 25 days ago

  • Related to Feature #97653: Add option to not render website title in title tag added
Actions #4

Updated by Georg Ringer 25 days ago

  • Status changed from Under Review to New

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

Actions

Also available in: Atom PDF