[TYPO3-german] Alternative Aktion bei leerer linker Spalte
Attila Sirman
asirman at yahoo.de
Sun Mar 8 13:20:33 CET 2009
Hallo Joey,
vielen Dank für Deine Hinweise. Habe Typo3-Erstkontakt. Entwickle seit 10
Jahren individuelle CMS unter php, Typo3 Syntax ist neu für mich. Ich bitte
daher um Entschuldigung für vielleicht sehr dumme Fragen.
Ich generiere jetzt meinen temp.cont im page Objekt:
temp.cont = COA
temp.cont {
10 = COA
10 {
if.isTrue.numRows < styles.content.getLeft
10 = TEMPLATE
10 {
template = FILE
template.file = fileadmin/mf3spalter.htm
workOnSubpart = DOCUMENT_BODY
marks {
CONTENT_LEFT = CONTENT
CONTENT_LEFT {
table = tt_content
select.orderBy = sorting
select.where = colPos = 1
}
CONTENT_MIDDLE = CONTENT
CONTENT_MIDDLE {
table = tt_content
select.orderBy = sorting
select.where = colPos = 0
}
CONTENT_RIGHT = CONTENT
CONTENT_RIGHT {
table = tt_content
select.orderBy = sorting
select.where = colPos = 2
}
}
}
}
20 = COA
20 {
if.isFalse.numRows < styles.content.getLeft
10 = CONTENT
10 {
table = tt_content
select.orderBy = sorting
select.where = colPos = 0
}
}
}
Die Abfrage läuft und liefert korrekte Ergebnisse.
Im marks Objekt weise ich nur noch so zu:
CONTENT = COA
CONTENT < page.temp.cont
So geht es also. Vielen Dank noch einmal für Deine Unterstützung. Bin
übrigens wegen leichter Verunsicherung für weitere Anregung oder Kritik
offen.
Beste Grüße
Attila
More information about the TYPO3-german
mailing list