[TYPO3-german] Condition für Inhaltselement?

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


Marco Peemöller schrieb:

> ob folgendes funktioniert, weiß ich nicht
> plugin.tt_news.preAuthor >
> tt_news.author_stdWrap{
muss natürlich sein: plugin.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 {
muss natürlich sein: plugin.tt_news.author_stdWrap

> 	10 = TEXT
> 	10.data = register:preAuthorRegister
> }
> 
> keine Gewähr, der zweite Ansatz sollte so oder so ähnlich aber funktionieren
> 
> Viele Grüße
> 
> Marco
> _______________________________________________
> TYPO3-german mailing list
> TYPO3-german at lists.netfielders.de
> http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-german
> 



More information about the TYPO3-german mailing list