Titel-Kontext auch bei kopiertem SEO-Titel; Description /solutions

Der Import hatte bei fast allen Seiten den Seitentitel 1:1 als seo_title
gespeichert, dadurch griff die Kontext-Vorlage fuer kurze Titel nie. Ein
seo_title, der dem Seitentitel entspricht, gilt jetzt als nicht gepflegt
('Aligo | AV over IP & KVM | VITEC'). Dazu die Meta-Description der
Solutions-Uebersicht (war bis heute der TCA-Platzhaltertext).

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
This commit is contained in:
orascheandClaude Fable 5.1 committed 2026-11-10 17:49:52 +01:00
1 parent 8a652063c5
commit 33bdb8d856
2 files changed
+17 -1

No files matched your search

@@ -145,9 +145,14 @@ class VitecMetaHandler extends MetaHandler
// "Aligo | VITEC" (Seobility: 456 titles "zu kurz") becomes
// "Aligo | AV over IP & KVM | VITEC"; only for plain pages without an
// editor-set SEO title, never for record detail pages.
// An SEO title that merely repeats the page title (the import copied
// title -> seo_title) counts as "not maintained".
$seoTitle = trim((string)($page['seo_title'] ?? ''));
$pageTitle = trim((string)($page['title'] ?? ''));
$seoTitleMaintained = $seoTitle !== '' && mb_strtolower($seoTitle) !== mb_strtolower($pageTitle);
if ($newsUid === 0 && $productArg === '' && $usecaseUid === 0
&& $title !== '' && mb_strlen($title) < 30
&& trim((string)($page['seo_title'] ?? '')) === ''
&& !$seoTitleMaintained
) {
$parentTitle = $this->parentTitle($pageInfo);
if ($parentTitle !== '' && mb_stripos($title, $parentTitle) === false) {