Unterschiede

Hier werden die Unterschiede zwischen zwei Versionen gezeigt.

Link zu der Vergleichsansicht

typo3:news_title_in_rootline [23.02.2017 15:29] (aktuell)
wolfgang angelegt
Zeile 1: Zeile 1:
 +===== news: Rootline-Navigation um news-Titel erweitern =====
 +
 +<​code=typoscript>​
 +lib.rootline = COA
 +lib.rootline {
 + wrap = <​ol>​|</​ol>​
 + 10 = HMENU
 + 10 {
 + special = rootline
 + special.range = 0|-1
 + 1 = TMENU
 + 1 {
 + NO = 1
 + NO {
 + ATagTitle.field = subtitle // title
 + wrapItemAndSub =  <​li>​|</​li>​
 + stdWrap.htmlSpecialChars = 1
 + }
 + CUR < .NO
 + CUR {
 + wrapItemAndSub =  <li class="​current">​|</​li>​
 + linkWrap = <​h1>​|</​h1>​
 + doNotLinkIt = 1
 + }
 + }
 + }
 + # Add news title if on single view
 + 20 = RECORDS
 + 20 {
 + stdWrap.if.isTrue.data = GP:​tx_news_pi1|news
 + 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
 + htmlSpecialChars = 1
 + }
 + wrap = <​li>​|</​li>​
 + }
 +}
 +</​code>​