Hallo allerseits,
ich brüte schon länger - nach eifriger Forumssuche - über folgendem Problem:
Wenn in einem News-Artikel Bilder vorhanden sind, werden diese in der rechten Spalte angezeigt; soweit funktioniert es auch.
Nun möchte ich aber, wenn keine Bilder vorhanden sind, daß ein Bild aus der rechten Spalte von einer beliebigen (nicht im Menu) Seite angezeigt wird; sozusagen als "Lückenfüller". Diese hat die ID "70".
seite.20.marks {
newslist = COA
newslist < plugin.tt_news
newslist {
# crop Titel
displayList.title_stdWrap.crop = 55|...|1
# Page ID News:Die ID der Seite wo die News drin sind
pid_list >
pid_list = 4
#Page ID Singlenews:Die ID der Seite wo die SingleNews drin sind
singlePid >
singlePid = 6
code >
code = LIST
}
content_middle = COA
content_middle < plugin.tt_news
content_middle {
# Page ID News:Die ID der Seite wo die News drin sind
pid_list >
pid_list = 4
#Page ID Singlenews:Die ID der Seite wo die SingleNews drin sind
singlePid >
singlePid = 6
code >
code = SINGLE
}
content_right = COA
content_right < plugin.tt_news
content_right {
templateFile = fileadmin/templates/tt_news_pic.tmpl
displaySingle {
imageCount = 30
caption_stdWrap.required = 1
image.stdWrap.spaceAfter = 0
image.file.maxW = 90
}
# Page ID News:Die ID der Seite wo die News drin sind
pid_list >
pid_list = 4
#Page ID Singlenews:Die ID der Seite wo die SingleNews drin sind
singlePid >
singlePid = 6
code >
code = SINGLE
}
###Hole Inhalt aus rechter Spalte###
10 < styles.content.getRight
### wenn leer, dann inhalt aus anderer Seite holen
10.stdWrap.ifEmpty.cObject = CONTENT
10.stdWrap.ifEmpty.cObject {
table = tt_content
select {
### Seite, aus der der Inhalt kommt (id 70)
pidInList = 70
orderBy = sorting
### colPos=2 ist Spalte 'RECHTS'
where = colPos=2
}
}
}
Hat jemand einen Tip für mich, wo der Fehler liegt?
Gruß aus Lippe,
Otti.