Hallo,
die Suchfunktion funktioniert soweit. Allerdings gibt es folgendes Problem:
Ich habe oben rechts auf der Seite das Eingabefeld mit Suchen-Button. Wenn man den zu suchenden Begriff eingibt und abschickt, kommt man aber erst auf die "Suchen-Seite" mit nochmal dem selben Fensterchen im Contentbereich in das auch jetzt schon der zu suchende Begriff eingetragen ist. Jetzt muss ich aber an diesem fensterchen nochmal auf Suche drücken, damit die Suchergebnisse angezeigt werden. Etwas unschön. Wie umgehe ich das?
# Suchformular im Platzhalter anzeigen
SUCHE < tt_content.search.30
SUCHE {
target = _self
redirect = 72
badMess = Bitte geben Sie ein Suchwort an!
layout = ###FIELD###<br />
stdWrap.wrap >
dataArray.10 {
label =
type = *sword = input, 15, 30
}
dataArray.20 {
valueArray >
type = scols = hidden
value =
pages.title-subtitle-keywords-description:tt_content.header-bodytext-imagecaption
}
image = IMAGE
image.file = GIFBUILDER
image.file {
XY = 60,20
backColor = silver
10 = TEXT
10.text = SUCHEN!
10.fontFile = fileadmin/fonts/verdana.ttf
10.fontColor = white
10.fontSize = 10
10.offset = 3, 13
}
}
UND
#Das Suchformular anpassen
tt_content.search.30 {
target = _self
badMess = Bitte fllen Sie alle erforderlichen Felder aus:
dataArray.10 {
label = Ihre Suche:
type = *sword = input, 15, 20
}
dataArray.20 {
valueArray >
type = scols = hidden
value =pages.title-subtitle-keywords-description:tt_content.header-bodytext-imagecaption
}
image = IMAGE
image.file = GIFBUILDER
image.file {
XY = 90,20
backColor = #336699
10 = TEXT
10.text = Suche starten!
10.fontFile = fileadmin/fonts/verdana.ttf
10.fontColor = white
10.fontSize = 8
10.offset = 2, 15
}
}
# Das Suchergebnis anpassen
tt_content.search.20 {
layout.10 {
value = Ergebnisse auf dieser Seite: ###RANGELOW### bis ###RANGEHIGH###
von ###TOTAL###
fontTag >
wrap = <td width="95%" bgcolor="silver"><font face="verdana" size="”2”"><b>|</b></font></td>
}
layout.20 {
value = ###PREV### ###NEXT###
fontTag >
wrap = <td bgcolor="silver"><font face="verdana" size="2"><b>
</b></font></td>
}
renderObj.10 {
textStyle >
fontTag >
wrap = <font face="”verdana”" size="”2”"><b>
</b></font>
typolink.target = _self
}
renderObj.20 {
stdWrap.textStyle >
stdWrap.wrap = <tr><td><font face="Verdana" size="1" color="navy">
</font></td></tr>
stdWrap.crop = 200 | [...]
}
noResultObj >
noResultObj = TEXT
noResultObj {
value = Kein Ergebniss gefunden!
wrap = <font face="Verdana" size="2"><b>|</b></font>
}
next.value = Weiter
prev.value = Zurck
target = _self
range = 10
}