Skip to content

Commit

Permalink
feat: use seo title if og or twitter titles are empty
Browse files Browse the repository at this point in the history
  • Loading branch information
dvdmlln committed Apr 30, 2024
1 parent 91573f7 commit 349e65d
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions Configuration/TypoScript/Page/Meta.typoscript
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
lib.meta {
fields {
ogTitle {
stdWrap.ifEmpty.cObject {
field = seo_title
stdWrap.ifEmpty.cObject = TEXT
stdWrap.ifEmpty.cObject {
field = title
}
}
}
twitterTitle {
stdWrap.ifEmpty.cObject {
field = seo_title
stdWrap.ifEmpty.cObject = TEXT
stdWrap.ifEmpty.cObject {
field = title
}
}
}
}
}

0 comments on commit 349e65d

Please sign in to comment.