Skip to content

Instantly share code, notes, and snippets.

@runningnet
Created April 10, 2017 14:56
Show Gist options
  • Save runningnet/c502a4e0349d87c01ca34e5c4af6b931 to your computer and use it in GitHub Desktop.
Save runningnet/c502a4e0349d87c01ca34e5c4af6b931 to your computer and use it in GitHub Desktop.
Canonical for Content from Page
page.headerData.1337 = TEXT
page.headerData.1337 {
if.isTrue.field = content_from_pid
typolink.parameter.field = content_from_pid
typolink.returnLast = url
dataWrap = <link rel="canonical" href="{$baseURL}|" />
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment