[TYPO3-german] Counter in Menü für CSS Klasse

Bernd Schönbach bs.newsfeeds at googlemail.com
Thu Sep 15 18:23:40 CEST 2011


lib.navigation = COA
lib.navigation {
	5 = LOAD_REGISTER
	5 {
		Counter = 0
	}
	10 = HMENU
	10 {
		entryLevel = 1
		1 = TMENU
		1 {
			expAll = 1
			wrap = <div class="hlist-layer">|</div>
			NO = 1
			NO {
				stdWrap.cObject = COA
				stdWrap.cObject {
					10 = LOAD_REGISTER
					10 {
						Counter.cObject = TEXT
						Counter.cObject.data = register:Counter
						Counter.cObject.wrap = |+1
						Counter.prioriCalc = intval
					}
				}
				allWrap = <div>|</div>
			}
			ACT = 1
			ACT {
				subst_elementUid = 1
				stdWrap.cObject = COA
				stdWrap.cObject {
					10 = LOAD_REGISTER
					10 {
						Counter.cObject = TEXT
						Counter.cObject.data = register:Counter
						Counter.cObject.wrap = |+1
						Counter.prioriCalc = intval
					}
				}
				allWrap = <div>|</div>
				}
		}
	
		2 = TMENU
		2 {
			stdWrap.wrap = <ul class="l0{register:Counter}" >|</ul></span>
			stdWrap.insertData = 1
			NO = 1
			NO {
				allWrap = <li>|</li>
			}
		}
	}
}


More information about the TYPO3-german mailing list