search field in left part, results main content

Get help with installation and running phpwcms here. Please do not post bug reports or feature requests here.
Post Reply
macangelo
Posts: 756
Joined: Sat 29. Nov 2003, 14:19
Location: Düsseldorf
Contact:

search field in left part, results main content

Post 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
Webdesign from Düsseldorf - made with phpwcms (most of it):
http://eyelikeit.com/index.php?de_beispiele-webdesign
rushclub
Posts: 915
Joined: Tue 17. Feb 2004, 18:52

Post by rushclub »

3 (!) Jahre warten reichen mir. Ich bin erst mal weg.
User avatar
StudioZ
Posts: 802
Joined: Fri 28. May 2004, 19:57
Location: Québec, Canada
Contact:

Re: search field in left part, results main content

Post 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%">&nbsp;<input name="submit" type="submit" value="OK" class="formButton" />&nbsp;&nbsp;&nbsp;</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,
Image
PhpWCMS Evangelist, -- iRoutier.com Running phpWCMS 1.4.2, r354 -> Great Version!!!!
macangelo
Posts: 756
Joined: Sat 29. Nov 2003, 14:19
Location: Düsseldorf
Contact:

Post by macangelo »

that helped! thanks a lot

macangelo
Webdesign from Düsseldorf - made with phpwcms (most of it):
http://eyelikeit.com/index.php?de_beispiele-webdesign
Post Reply