[TYPO3] Code after first header

Tapio Markula tapio.markula at dnainternet.net
Thu Mar 23 16:29:52 CET 2006


Hi

I got a template building, where I should be able to put a fixed image 
link inside the first header and the colpos value shoud be 0.

I should use if-statements but I must admit that I
don't properly understand the logic of TypoScript concerning
this issue - yes, I have read TSConfig but still I don't
properly understand it.

lib.stdheader {



	# check that first header
	11 = LOAD_REGISTER
	11.if.value=1
	11.if.equals.data = cObj:parentRecordNumber

	# then should test if colPos is '0'
	12 = LOAD_REGISTER
	12.if.value=0
	12.if.equals.data = field:colPos

somewhat on the base of those should be generated that conditional:


        lib.stdheader.stdWrap.dataWrap = <div class="csc-header 
csc-header-n{cObj:parentRecordNumber}">|{someConditionalCodeHere}</div>
        }



More information about the TYPO3-english mailing list