You can use the following Typoscript to create a rootline or breadcrumb navigation. This is then extended in the single view of a news article by the title of the news. The news extension is used here.
1. create rootline navigation
lib.rootline = COA
lib.rootline {
wrap = <ul class="rootline">|</ul>
# breadcrumbs
10 = HMENU
10 {
special = rootline
special.range = 1|-1
1 = TMENU
1 {
NO = 1
NO.doNotLinkIt = |*| 0 |*| 1
NO.allWrap = |*|<li>|<span class="divider">/</span></li>|*|<li>|</li>
NO.stdWrap.htmlSpecialChars = 1
}
}
}
2. add news titles to the Rootline
## The condition is used to ensure that the code is only executed,
## when a page with the news article view is called up.
[globalVar = GP:tx_news_pi1|news > 0]
lib.rootline.10.1.NO.doNotLinkIt = 0
lib.rootline.10.1.NO.allWrap = <li>|<span class="divider">/</span></li>
lib.rootline.20 = RECORDS
lib.rootline.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 = <li>|</li>
}
[end]
Updated: 09.04.2025