Guten Abend
Ich würde gerne eine IF/ELSE Anweisung nutzen.
Ich nutze die folgende TSconfig in meinem Template:
# Main TEMPLATE cObject for the HEAD
temp.headTemplate = TEMPLATE
temp.headTemplate {
# Feeding the content from the Auto-parser to the TEMPLATE cObject:
template =< plugin.tx_automaketemplate_pi1
#template = FILE
#template.file = fileadmin/templates/christianslyst/template.html
# Select only the content between the <head>-tags
workOnSubpart = DOCUMENT_HEADER
marks.catColor = TEXT
marks.catColor.value = {$catColor}
marks.siteTitle = TEXT
marks.siteTitle.value = {$siteTitle}
marks.catTitle = TEXT
marks.catTitle.data = leveltitle:-2
marks.pageTitle = TEXT
marks.pageTitle.field = title
}
Ich möchte gerne folgendes machen:
IF leveltitle:-2 IS NOT foo ->
marks.catTitle = TEXT
marks.catTitle.data = leveltitle:-2
Wie kann ich das realisieren?
Habe mehrere Codebeispile mit IF gefunden, aber bekommen das irgendwie nicht hin... :-(
Ich hoffe auf Hilfe.