Hallo,
ich will formatierten content mit Case unterscheiden und ausgeben.
So was habe ich die ganze Zeit ausprobiert, funktioniert aber nicht:
Typoscript-Code:
1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13: 14: 15: 16: 17: 18: 19: 20: 21: 22: 23: 24: 25: 26: 27: 28: 29: 30: 31: 32: 33: 34: 35: 36: 37: 38: 39: 40: 41: 42: 43: 44: 45: 46: 47: 48: 49: 50: 51: 52: 53: 54: 55: 56:
| my_text=TEXT my_text.value=Hallo World! temp_inhalt =CONTENT temp_inhalt { table = tt_content select.orderBy = sorting select.where = colPos=0 } my_inhalt=CONTENT my_inhalt { table = tt_content select.orderBy = sorting select.where = colPos=0 renderObj=COA renderObj{ 5 = TEXT 5.wrap=<div class="linie"></div> 10=TEXT 10{ required=1 wrap=<h2>|</h2> field=header } 20=COA 20.wrap=<p>|</p> 20 { 20=IMAGE 20{ required=1 wrap=| file.import=uploads/pics/ file.import.field=image file.maxW=146 } 30=TEXT 30{ required=1 field=bodytext } } } } temp_inhalt=CASE temp_inhalt { key.field=CType default < my_inhalt list < my_text } |
Warum geht das nicht?
//EDIT von MistaD
Code in den passenden Code-Container geschubst!