Without using the sisea defaults (which I don't understand so well personally), you can use SimpleSearch with your own templates and chunks. The following is from the Flexibility basic site package, available in Package Management. Many Thanks to
http://designfromwithin.com"" target="_blank" rel="nofollow">Design From Within
Create Search Results Template:
(assumes site header and footer are chunks)
[[$siteHeader]]
[[*content]]
[[!SimpleSearch? &searchIndex=`your_search_field`]]
[[$siteFooter]]
Create a search results resource and attach the SearchResults template, note the ID. (assuming ID 12 here)
Create searchFormTpl chunk (use with CSS below and searchButton.png - attached:
<form id="my_id" action="[[~[[+landing:default=`[[*id]]`]]]]" method="[[+method:default=`get`]]">
<fieldset class="search">
<input id="searchField" class="my_class box" type="text" name="your_search_field" value=""/>
<button class="btn" title="Submit Search">Search</button>
</fieldset>
<input type="hidden" name="id" value="[[+landing:default=[[*id]]]]" />
</form>
To call SimpleSearch in resource or template:
<div class="search">[[!SimpleSearchForm? &tpl=`SearchFormTpl` &landing=`12` &hideMenu=`1`]</div>
Here's some CSS to get you started:
.search {
float: right;
margin-bottom: 20px;
}
input#searchIcon {
width: 29px;
height: 24px;
background: url(images/misc/searchButton.png) no-repeat 0 0;
}
input#searchIcon:hover {
background: url(images/misc/searchButton.png) no-repeat 0 -24px
}
fieldset.search {
border: none;
margin: 0 auto;
padding-right: 0px;
}
.search input,
.search button {
border: none;
float: left;
}
.search input.box {
color: #000000;
font-size: 1.2em;
width: 190px;
height: 24px;
padding: 0px 3px 0px 3px;
background: #ffffff;
margin-right: 5px;
border: 1px solid #000000;
}
.search input.box:focus {
background: #ebebeb;
outline: none;
}
.search button.btn {
width: 29px;
height: 24px;
cursor: pointer;
text-indent: -9999px;
background: url(images/misc/searchButton.png) no-repeat top right;
/*positions button at right inside of search box, delete to place to the outside right of search box*/
position: absolute;
left: 175px;
}
.search button.btn:hover {
background: url(images/misc/searchButton.png) no-repeat bottom right
}
[ed. note: frogabog last edited this post 14 years, 1 month ago.]