Page 1 of 1
search field in left part, results main content
Posted: Mon 22. Aug 2005, 16:12
by macangelo
Hi,
I know there once was a thread about having the search field left under the navigation and the results in the main content area.
Does anybody know?
Thanks a lot
macangelo
Posted: Mon 22. Aug 2005, 16:29
by rushclub
Re: search field in left part, results main content
Posted: Mon 22. Aug 2005, 22:38
by StudioZ
Hi macagelo,
macangelo wrote:Hi,
I know there once was a thread about having the search field left under the navigation and the results in the main content area.
macangelo
01. Create a section named Search and hide it if you want or not
02. Create one single new Article inside your new "Search" section
03. Create a "Search" content part in this newly created Article
04. Put/Edit as needed this piece of code inside each template(s) where you need your Search form to appear.
This is what I use on most of my sites:
Code: Select all
<table style="margin:10px 0px 0px 8px;" width="100%" border="0" cellspacing="0" cellpadding="0" summary="x"><tr><td align="center">
<table width="182" border="0" cellspacing="0" cellpadding="0" summary="Search">
<tr valign="top">
<td class="class="formSearch" valign="top" align="left">
<!-- ------ CALL TO YOUR SEACH FORM SECTION ALIAS - NAME CAREFULLY HERE (i.e. index.php?en_search) ------- --><form action="index.php?en_search" method="post">
<!-- CALL END -->
<input name="search_input_field" type="text" maxlength="200" value=" Search..." class="inputText" style="width:120px" /></td>
<td width="90%"> <input name="submit" type="submit" value="OK" class="formButton" /> </td>
</tr>
</form>
</table>
</td></tr></table>
Even simplier than above:
Code: Select all
<table>
<tr>
<td>
<form action="index.php?en_search" method="post">
<input name="search_input_field" type="text" maxlength="200" value=" Search..."></td>
<td><input name="submit" type="submit" value="OK">
</td>
</tr>
</form>
</table>
Hope these could help you out.
Cheers,
Posted: Wed 24. Aug 2005, 06:37
by macangelo
that helped! thanks a lot
macangelo