Skip to content

Instantly share code, notes, and snippets.

@damisau
Last active August 29, 2015 14:21
Show Gist options
  • Save damisau/49d6f1a73a24c4abb965 to your computer and use it in GitHub Desktop.
Save damisau/49d6f1a73a24c4abb965 to your computer and use it in GitHub Desktop.
TYPO3 breadcrumb inkl. News
#Breadcrumb component including news if applicable
lib.Breadcrumb = COA
lib.Breadcrumb {
wrap = <nav class="Breadcrumb">|</nav>
10 = HMENU
10 {
special = rootline
1 = TMENU
1 {
NO {
stdWrap.htmlSpecialChars = 1
ATagParams = class="Breadcrumb-link"
}
}
}
}
[globalVar = GP:tx_news_pi1|news > 0]
lib.Breadcrumb.10.1.NO.doNotLinkIt = 0
lib.Breadcrumb.20 = RECORDS
lib.Breadcrumb.20 {
dontCheckPid = 1
tables = tx_news_domain_model_news
source.data = GP:tx_news_pi1|news
source.intval = 1
conf.tx_news_domain_model_news = TEXT
conf.tx_news_domain_model_news.field = title
conf.tx_news_domain_model_news.htmlSpecialChars = 1
wrap = <a>|</a>
}
[end]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment