Translations
Info
All page names need to be in English.
en da  de  fr  it  ja  km  nl  ru  zh

De:TSref/CONTENT

From TYPO3Wiki
Jump to: navigation, search

This page is document in progress. TypoScript (Liste TypoScript)

Contents

CONTENT

Erzeugt Inhalt.

Der Register-Key SYS_LASTCHANGED wird mit dem Inhalt des tstamp-Feldes des aktuellen Elements gefüllt, wenn es einen höheren Wert hat, als der SYS_LASTCHANGED selbst. Der Register enthält somit den Timestamp des zuletzt geänderten Datensatzes.

Eigenschaft Datentyp Kommentar Standardwert


select select Definiert das SQL-Statement
table tableName Die Tabelle deren Inhalt verwendet werden soll.

In der Standard-Konfiguration wird das tt_content sein.

Hinweis: Erlaubt sind nur Tabellen mit den präfixen "tt_", "tx_", "ttx_", "fe_", "user_" sowie die Tabelle pages.

renderObj cObject < [tablename]
slide integer If set and no content element is found by the select command, then the rootLine will be traversed back until some content is found.

Possible values are “-1” (slide back up to the siteroot), “1” (only the current level) and “2” (up from one level back).

Use -1 in combination with collect.

slide.collect integer If set, all content elements found on current and parent pages will be collected. Otherwise, the sliding would stop after the first hit. Set this value to the amount of levels to collect on, or use “-1” to collect up to the siteroot.
slide.collectFuzzy boolean Wenn keine Inhaltselemente in den zu durchsuchenden Seiten gefunden werden, dann wird die Rootline solange hinabgestiegen, bis mindestens ein Inhaltselement gefunden wurde.
slide.collectReverse boolean Kehrt die Reihenfolge der eingesammelten Elemente um. Wenn der Wert gesetzt wird, dann werden die Elemente der aktuellen Seite zuletzt angezeigt.
wrap wrap Wrap the whole content-story...
stdWrap stdWrap


[tsref:(cObject).CONTENT]

Example (of the CONTENT-obj):

 1 = CONTENT
 1.table = tt_content
 1.select {
   pidInList = this
   orderBy = sorting
 }

Example (of record-renderObj's):

// Configuration for records with the typeField-value (often "CType") set to "header"
tt_content.header.default {
 10 = TEXT
 10.field = header  
 .....
}
// Configuration for records with the typeField-value (often "CType") set to "bullets"
// If field "layout" is set to "1" or "2" a special configuration is use, else default
tt_content.bullets.subTypeField = layout
tt_content.bullets.default {
 .....
}

tt_content.bullets.1 {
 .....
}
 
tt_content.bullets.2 {
 .....
}

// This is what happens if the typeField-value does not match any of the above
tt_content.default.default {
  .....
}


Beispiel für tt_address

1 = CONTENT
1.table = tt_address
1.select {
  pidInList = this
  orderBy = 
}

Der Unterschied zur Ausgabe zu tt_content beruht darin, dass orderBy ohne Inhalt gesetzt wird. Denn tt_address besitzt kein Feld "sorting", "orderby = sorting" führt daher zu einem SQL-Fehler und die Ausgabe bleibt leer.

Weiterführende Informationen

Eine gute Anleitung findet sich auf der TYPO3 Wizard-Seite.

http://www.typo3wizard.com/de/artikel/das-content-objekt.html

Go to: typo3.org    
Login, and you can edit.
Personal tools
Namespaces

Variants
Actions