[TYPO3-german] T3_6 TypoScript If-Abfrage soll prüfen ob Inhalte im Inhaltsbereich der Seite stehen.

SW sw1977 at online.de
Fri Jan 25 18:17:29 CET 2013


Versuch mal folgendes:

10 = COA
10 {
     10 = CONTENT
     10 {
         table = tt_content
         select {
             pidInList = this
             orderBy = sorting
             where = colPos = 0
             languageFild = sys_language_uid
         }
     }
}
10.stdWrap.wrap = <div class="Layout1 Spalte0">|</div>
10.stdWrap.required = 1

Gruß
Susanne


Am 25.01.2013 17:59, schrieb Marco Brüggemann:
> Hallo Leute,
>
> ich möchte einen Bereich der Seite nur ausgeben, wenn in dieser auch 
> Inhalte geschrieben wurden:
> also wenn in "Rand" ein Inhalt steht, dann soll im HTML die Inhaltsbox 
> für "Rand-Elemente" gerendert werden.
>
> Ich möchte dieses mit einer if-Abfrage der "colPos" in "tt_content" 
> machen, da ich selbstdeginierte Inhaltsbereiche hinzugefügt haben.
>
> leider klappt aber meine if-Abfrage nicht - er gibt auch die leeren 
> felder aus:
>
> /10 = CONTENT
>     10 {
>         if.field.value = 0
>         table = tt_content
>         select {
>             pidInList = this
>             orderBy = sorting
>             where = colPos = 0
>             languageFild = sys_language_uid
>         }
>         wrap = <div class="Layout1 Spalte0">|</div>
>     }/
>
> Selbe auch bei:
>
> /10 = CONTENT
>     10 {
>         if.field = colPos
>         value = 0
>         table = tt_content
>         select {
>             pidInList = this
>             orderBy = sorting
>             where = colPos = 0
>             languageFild = sys_language_uid
>         }
>         wrap = <div class="Layout1 Spalte0">|</div>
>     }/
>
> Könnt Ihr mir bitte zeigen, wie man die if-Abfrage richtig aufbaut?
>
> Vielen Dank,
> Marco.
> _______________________________________________
> TYPO3-german mailing list
> TYPO3-german at lists.typo3.org
> http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-german
>



More information about the TYPO3-german mailing list