Skip to content

Instantly share code, notes, and snippets.

@oliverthiele
Created August 19, 2015 15:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save oliverthiele/cf53d1d0f150ee4263ba to your computer and use it in GitHub Desktop.
Save oliverthiele/cf53d1d0f150ee4263ba to your computer and use it in GitHub Desktop.
TYPO3 Rootline Menu / Breadcrumb with RDFa metadata
/**
* TYPO3 Rootline menu with RDFa metadata
*
* @author Oliver Thiele
* @see https://developers.google.com/structured-data/breadcrumbs
*/
lib {
breadcrumb = HMENU
breadcrumb {
special = rootline
special.range = 0|-1
1 = TMENU
1 {
wrap = <ol class="breadcrumb" vocab="http://schema.org/" typeof="BreadcrumbList">|</ol>
NO = 1
NO {
before.cObject = LOAD_REGISTER
before.cObject {
tempN.data = register:L1N
tempN.wrap = |+1
L1N.data = register:tempN
L1N.prioriCalc = 1
}
wrapItemAndSub = <li property="itemListElement" typeof="ListItem">|</li>
stdWrap.wrap = <span property="name">|</span>
linkWrap = |<meta property="position" content="{register:L1N}">
ATagParams = property="item" typeof="WebPage"
stdWrap.htmlSpecialChars = 1
allStdWrap.insertData = 1
}
CUR < .NO
CUR {
wrapItemAndSub = <li class="active" property="itemListElement" typeof="ListItem">|</li>
doNotLinkIt = 1
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment