1) Create a page, and add the SEARCHBOX content to that page.
2) change the constant "searchpagePID" to the PID of the page you just
created.
3) In your template define a marker and insert the "temp.searchbox"
(like subparts.searchbox < temp.searchbox)
-- CONSTANTS START --
searchpagePID = 6
styles.content.links.sword = <font color="#D89506">|</font>
-- CONSTANTS END --
-- SETUP START --
tt_content.search.30.layout = <tr><td align=right><font face="Arial"
size="2">###LABEL###</font></td><td><img src="clear.gif"
width=5></td><td>###FIELD###</td></tr>
tt_content.search.30.dataArray.10.label >
tt_content.search.30.params.input = style="border: 1px solid #39ACFF;
height: 19px;"
# Image button
tt_content.search.30.image = IMAGE
tt_content.search.30.image.file =
fileadmin/templates/images/ny-soegning1.gif
tt_content.search.30.image.alttext = Søg
tt_content.search.30.params.submit =
onmouseover="this.src='fileadmin/templates/images/ny-soegning2.gif'"
onmouseout="this.src='fileadmin/templates/images/ny-soegning1.gif'"
# Set the searchbox to only search in pagecontent (no selectbox)
tt_content.search.30.dataArray.20.type = scols=hidden
tt_content.search.30.dataArray.20.valueArray >
tt_content.search.30.dataArray.20.value =
tt_content.header-bodytext-imagecaption
# Wraps for no results found
tt_content.search.20.noResultObj.wrap=<table width="100%" border=0
cellspacing=0 cellpadding=2><tr> | </tr></table>
tt_content.search.20.noResultObj.10.wrap = <td width=100%><hr><br> | </td>
# Wraps for results found
tt_content.search.20.layout.wrap = <table width="100%" border=0
cellspacing=0 cellpadding=2><tr> | </tr></table> ###RESULT###
tt_content.search.20.layout.10.wrap = <td width=100%><hr><br> | </td>
tt_content.search.20.layout.10.fontTag = <font face="verdana"
color="#D39509" size=2><B> | </B></font>
tt_content.search.20.layout.20.wrap = <td>|</td>
tt_content.search.20.renderObj.10.textStyle.color.default = #2174BB
tt_content.search.20.renderObj.10.case = upper
tt_content.search.20.renderObj.20.stdWrap.textStyle.color.default = Black
temp.searchbox = FORM
temp.searchbox {
type = {$searchpagePID}
locationData = 1
no_cache = 1
layout = <td>###LABEL######FIELD###</td>
# Workaround to add a STYLE parameter directly on the FORM tag.
target = " style="margin-bottom : 0px;
image = IMAGE
image.file = fileadmin/templates/images/searchbutton.gif
image.alttext = Søg
params.submit =
onmouseover="this.src='fileadmin/templates/images/searchbutton2.gif'"
onmouseout="this.src='fileadmin/templates/images/searchbutton.gif'"
params.input = style="width: 115px; height: 16px; border: 1px solid
#007FDA; font: normal normal normal 12px/12px Arial, Helvetica, sans-serif;
margin-bottom: -1; background-color: #E4F4FF;"
dataArray {
10.type = sword=input,10
20.type = scols=hidden
20.value = tt_content.header-bodytext-imagecaption
30.type = stype=hidden
30.value = L0
40.type = submit=submit
}
}
-- SETUP END --
--
Peter Klein / Umloud ApS