Zum Inhalt springen

One page mit typoscript Problem. Inhalte von einem Verzeichnis ausgeben!

Erstellt am 6. Juni 2014 · 1 Antwort · letzte Antwort am 6. Juni 2014

Tags: Inhaltselemente, Frage

konstantin_s90 ·

Hallo!

Ich bin schon seit zwei Tage mit der Ausgabe von den Unterseiten beschäftigt.

Ich brauche alle Inhalte von bestimmte directory auf einer Seite ausgeben.

Es soll so aussehen:

SEITENTITEL 1
Unterseite 1 | Unterseite 2 | Unterseite 3

Inhalt 1

Inhalt 2

SEITENTITEL 2
Unterseite 1 | Unterseite 2 | Unterseite 3

Inhalt 1

Inhalt 2

usw.

So bekomme ich alle pids:

lib.allePIDs = COA
lib.allePIDs {
	10 = HMENU
	10 {
		special = directory
		special.value = 1
		entryLevel = 1
		1 = TMENU
		1 {
			expAll = 1
			NO.doNotShowLink = 1
			NO.allStdWrap.field = uid
			NO.allStdWrap.wrap = |,
		}
		2 < .1
		3 < .1
		4 < .1
		5 < .1
	}
}

Dann gebe die Inhalte aus:

lib.alleInhalte = CONTENT
lib.alleInhalte {
	table = tt_content
	select {
		pidInList.cObject < lib.allePIDs
	}
}

Meine Frage:
Wie kann man die Inhalte wrappen je Seite? und wie kann ich auch Titel und Unterseite ausgeben?

Vielen Dank im Voraus

toifel ·

Wenn du nur mit der Liste der PIDs arbeitest, dann wird es unnötig kompliziert die Relationen wieder zusammen zu bekommen. Ich würde ein verschachteltes CONTENT Objekt empfehlen... also in etwa so

lib.alleInhalte = CONTENT
lib.alleInhalte {
  table = pages
  select.pidInList = 1
  renderObj = COA
  renderObj {
    10 = CONTENT
    10 {
      table = tt_content
      select.pidInList.data = field:uid
      wrap = <div class="contentWrap">|</div>
    }
    wrap = <div class="pageWrap id{field:uid}"><h2>{field:title}</h2>|</div>
    wrap.insertData = 1
  }
}