[TYPO3-english] Conditional data in Templavoila datastructure - not working?

Albert van der Veen albert.van.der.veen at xs4all.nl
Mon Oct 22 16:15:21 CEST 2012


Hi all,

I would like to render content based on the existence of a GP var. The 
typoscript below is part of the 'local processing' of a Templavoila 
template object. However, the 'if' condition doesn't seem to get 
processed, as both parts are always executed. A test with 'if.isTrue=0' 
still renders the content.
Should this be done in a different way?

grtz,
Albert

20.20 = CONTENT
20.20 {
	#source.current = 1
	table = tt_content
	select {
		join = tx_tagpack_tags_relations_mm
		where = tt_content.uid = tx_tagpack_tags_relations_mm.uid_foreign AND 
tx_tagpack_tags_relations_mm.uid_local = ###doelgroep###
		markers {
			doelgroep.data = GP:doelgroepKBI
		}
	stdWrap.if.isInList.data = GP:doelgroepKBI
	stdWrap.if.value = 1,2,3,4
	}
}
20.30 = CONTENT
20.30 {
	#source.current = 1
	table = tt_content
	select {
		pidInList = this
		where = tt_content.uid NOT IN (SELECT uid_foreign FROM 
tx_tagpack_tags_relations_mm)
		markers {
			doelgroep.data = GP:doelgroepKBI
		}
	stdWrap.if.isFalse.data = GP:doelgroepKBI
	}
}


More information about the TYPO3-english mailing list