Render custom canonical tag

This commit is contained in:
Björn Fromme
2018-08-14 10:43:26 +02:00
parent ef28d0daf2
commit 4580d595cc
2 changed files with 12 additions and 0 deletions
@@ -1,3 +1,10 @@
tmp.canonical = TEXT
tmp.canonical {
typolink.parameter.data = TSFE:id
typolink.returnLast = url
wrap = <link rel="canonical" href="{$plugin.tx_eptheme.settings.canonicalBaseUrl}|"/>
}
page = PAGE
page {
meta {
@@ -139,6 +146,9 @@ page {
</script>
)
headerData.999.stdWrap.if.isTrue = {$plugin.tx_eptheme.settings.googleTagManagerId}
headerData.100 < tmp.canonical
headerData.100.insertData = 1
}
[applicationContext = Development]
@@ -106,6 +106,8 @@ plugin.tx_eptheme {
googleMapsJsApiUrl = https://maps.googleapis.com/maps/api/js?key=AIzaSyDDOforD1O_j4xXy2nJybC2yQqbUAw9ClY
# cat=eptheme/300/120; type=string; label=Google Maps Js API Url
googleMapsApiKey = AIzaSyDDOforD1O_j4xXy2nJybC2yQqbUAw9ClY
# cat=eptheme/300/130; type=string; label=Canonical base URL/Domain
canonicalBaseUrl = https://www.ep-reisen.de
# cat=eptheme.events/700/100; type=string; label=Event date day from
eventDateDayFrom =