[TYPO3-german] Nur Inhalt der Spalte bodytext aus tt_content ausgeben
Stefan Padberg
post at bergische-webschmiede.de
Thu Oct 1 11:53:34 CEST 2015
Hallo Michael,
häng mal an dein TypoScript noch ein renderObj dran.
https://docs.typo3.org/typo3cms/TyposcriptReference/ContentObjects/Content/Index.html
Mit dem renderObj kannst du genau steuern, was das CONTENT-Objekt ausgibt.
temp.text = CONTENT
temp.text {
table = tt_content
select.uidInList = 195
renderObj = TEXT
rednerObj.field = bodytext
}
Das reicht vielleicht schon.
Gruß
Stefan
Am 01.10.2015 um 11:21 schrieb Michael Pockie:
> Hallo,
>
> ich möchte in einem kleinen Textslider den Bodytext eines ganz
> bestimmten Inhaltselements ausgeben. Ich weiß jedoch nicht wie ich mit
> typoscript auf die Splate "bodytext" zugreifen kann.
>
> Ich habe folgendes Typoscript:
>
> temp.text= CONTENT
> temp.text{
> table = tt_content
> select.uidInList = 195
> }
>
> temp.marquee < temp.text
>
> Das SQL, welches generiert wird, lautet SELECT * FROM `tt_content` WHERE
> `uid` = 195. Es wird also die komplette Zeile in meinem Textslider
> ausgegeben. Ich möchte jedoch nur den Inhalt der Spalte bodytext
> ausgeben. Also ich würde gerne das SQL SELECT `bodytext` FROM
> `tt_content` WHERE `uid` = 195 generieren.
>
> Wie kann ich also in Typoscript anstatt "SELECT * " den SQL-Befehl
> "SELECT `bodytext`" schreiben?
> Danke für eure Hilfe
> Pockie
More information about the TYPO3-german
mailing list