Zum Inhalt springen

temp.contentHTML.10 = HTML rendert nichts

Erstellt am 10. September 2013 · 2 Antworten · letzte Antwort am 10. September 2013

Tags: HTML & CSS, TYPO3 6.x, Frage

rayphi ·

Hallo zusammen

Ich habe hier glaube ich gerade ein sehr merkwürdiges Phänomen:

(lib.contentImgNorm wird über Templavoila mit einem TemplateObjPath eingebunden)

Folgendes wird nicht gerendert (gebe ich dem temp.contentHTML noch ein wrap wird dieser gerendert aber nicht das HTML)

temp.contentHTML = COA
temp.contentHTML {
    10 = HTML
    10 {
      value = <h1>Test</h1>
  }
}

lib.contentImgNorm = COA
lib.contentImgNorm {
    10 < temp.contentHTML
}

Folgendes jedoch wird gerendert

temp.contentHTML = COA
temp.contentHTML {
    10 = TEXT
    10 {
      value = Test
  }
}

lib.contentImgNorm = COA
lib.contentImgNorm {
    10 < temp.contentHTML
}

unter Typo3 4.5.25 habe ich ein identisches script welches funktioniert und nun benötige ich gerade diese Funktion bei einem Projekt was unter T3v: 6.0.9 läuft.

Hat sich da was geändert?

Beste Grüße Rayphi

rayphi · · Beste Antwort

YEAH Thats the way! 😛

https://docs.typo3.org/m/typo3/reference-typoscript/main/en-us/ContentObjects/Text/Index.html
HTML war seit 4.6 deprecated und ist seit 6.0 removed
field und split wird nicht mehr über vlaue.field & value.split angesprochen und nun gehts 🙂

temp.contentImg = COA
temp.contentImg {
    10 = TEXT
    10 {
        field = field_img
        split {
            wrap = <a class="fancybox" rel="fancybox-thumb" href="|"></a>
            token = ,
            cObjNum = 1
            1 {
                10 = IMG_RESOURCE
                10 {
                    file {
                        import.current = 1
                        import = uploads/tx_templavoila/
                        format = jpg
                      
                    }
                }
            }
        }
    }
}

lib.contentImgNorm = COA
lib.contentImgNorm {
    10 < temp.contentImg
}
Norman2k ·

Edit: da war ich wohl zu spät 😉

Das cObject HTML gibt es nicht mehr, angeblich soll das cObject TEXT aber genau die selbe Funktion wie HTML haben