[TYPO3-german] tt_content Bodytext als HTML rendern

Robert Wildling robertwildling at gmail.com
Sat Sep 15 12:55:48 CEST 2012


Man  muss bodytext durch die parseFunc schicken:


print.20.renderObj.10.parseFunc < lib.parseFunc_RTE

(oder auch: print.20.renderObj.10.parseFunc < 
tt_content.text.20.parseFunc - ist aber dasselbe...)


Links:
http://www.typo3.net/tsref/functions/parsefunc/
http://www.typo3lexikon.de/typo3-tutorials/tslib/die-tsref-aus-classtslib-contentphp/parsefunc.html
http://www.cms-content-management-solutions.de/libparsefunc_rte-konfigurieren.html

HTH, Robert


> Liebe Liste,
>
> ich habe eine Frage - ich bastel mir mittels PAGETYPE eine Druckseite
> zusammen - leider kommt aber im Frontend unformatierter Text heraus, wo
> keine Absätze und auch keine Links angezeigt werden.
> Anstelle der Links finde ich im Quellcode lediglich: <link .... >...
>
> D.h. er gibt das Datenbankfeld 1:1, ungerendert aus - wie kann ich das Feld
> denn richtig ausgeben?
>
>
> print = PAGE
> print {
>    typeNum = 91
>    bodyTag =
>
>    stylesheet = fileadmin/template/css/print/main.css
>
>    10 = CONTENT
>    10 {
>      table = tt_content
>      select {
>        andWhere.dataWrap = irre_parentid  = {field:uid}
>        begin = 0
>        max = 1
>      }
>
>      renderObj = COA
>      renderObj {
>        stdWrap.if.isTrue.data = field:image
>        10 = TEXT
>        10.field = image
>        10.dataWrap = <p><img src="uploads/pics/|" /></p>
>      }
>    }
>
>    20 = CONTENT
>    20 {
>      table = tt_content
>      select {
>        andWhere.dataWrap = irre_parentid  = {field:uid}
>        begin = 0
>      }
>
>      renderObj = COA
>      renderObj {
>        stdWrap.if.isTrue.data = field:bodytext
>        10 = TEXT
>        10.field = bodytext
>        10.dataWrap = <div>|</div>
>      }
>    }
>
>    100 = TEXT
>    100.value = <script> window.print(); </script>
> }
>
>
>
>
> Beste Grüße
>



More information about the TYPO3-german mailing list