[TYPO3-german] Condition für Inhaltselement?

Marco Peemöller listen at goto-marco.de
Wed Jan 23 00:09:55 CET 2008


Jochen Overwien schrieb:

>> [globalVar = GP:tx_ttnews|tt_news = 37]
>> plugin.tt_news._LOCAL_LANG.de.preAuthor = Autor:
>> [global]
> 
> das ist eine Condition für die News mit der id 37 - ich benötige aber 
> eine Condition für das Inhaltselement mit der id 37 (welches ein 
> tt_news-Element ist). Und somit wollte ich die Condition mit 
> TSFE:tt_content|uid gestalten.

sorry, falsch gelesen.
> 
> Geht das überhaupt? Also eine Condition für ein Inhaltselement?
> 

Bei mir funktioniert folgendes:

tt_content.stdWrap.if {
	value = 1428
	isInList.field = uid
	negate = 1
	
}

damit wird das Inhaltselement mit der uid 1428 nicht angezeigt.

ob folgendes funktioniert, weiß ich nicht
plugin.tt_news.preAuthor >
tt_news.author_stdWrap{
	preCObject{
		10 = CASE
		10 {
			key.field = tt_content:uid //ob das geht?
			default = TEXT
			default.value = Standard-Text-Vor-Author
			37 = TEXT
			30.value = Text-Beim-tt_content-Element 37
		}
	}	
	
}

anderer Ansatz:
tt_content.stdWrap.preCObject{
	if {
		value = 37
		isInList.field = uid
		
	}
	10 = LOAD_REGISTER
	10 {
		preAuthorRegister.cObject = TEXT
		preAuthorRegister.cObject.lang.de = Author 37
		preAuthorRegister.cObject.lang.en = Author 37 EN
	}
	
}

tt_content.stdWrap.postCObject{
	if {
		value = 37
		isInList.field = uid
		negate = 1
		
	}
	10 = LOAD_REGISTER
	10 {
		preAuthorRegister.cObject = TEXT
		preAuthorRegister.cObject.lang.de = Author normal
		preAuthorRegister.cObject.lang.en = Author normal EN
	}
	
}
plugin.tt_news.preAuthor >
tt_news.author_stdWrap.preCObject {
	10 = TEXT
	10.data = register:preAuthorRegister
}

keine Gewähr, der zweite Ansatz sollte so oder so ähnlich aber funktionieren

Viele Grüße

Marco


More information about the TYPO3-german mailing list