[TYPO3-UG Freiburg] Frage zu if in typoscript
Claudius Heitz
claudius at heitz.info
Thu Apr 2 14:54:23 CEST 2009
Hi,
ich will ein COA nur ausgeben, wenn ein bestimmter Datensatz vorhanden
ist, den ich über eine CONSTANTS anspreche.
Nun ist die Frage, ob ich in einer if-Anweisung einen select-Konstrukt
einbauen kann oder ob das nur bei CONTENT-Objekten geht. Weiß da jemand
weiter?
lib.hinweis = COA
lib.hinweis {
10 = TEXT
10.value = Hinweis XY
if {
value {
table = tt_address
select {
selectFields = COUNT(*)
pidInList = 123
where = tt_address.email LIKE '{$myEmail}'
}
}
# Prüfen, ob der Datensatz vorhanden ist
equals = 1
}
}
Viele Grüße
Claudius
More information about the TYPO3-UG-Freiburg
mailing list