PDA

View Full Version : Customizing results page



adam
07-06-2005, 05:24 PM
I have my own search form that looks like this:


http://img136.imageshack.us/img136/2710/search3oj.jpg


Which will be on my pages.

However, when I get my results, I get them on a blank page, and I want them to appear in the same format as the rest of my pages using a template file with CSS's.

What I want to do is similar to Wrensoft's main page, where there is a small search box up top, but the results are displayed in a new page, with the results in the middle area of a web page with a CSS.

Please help. Thanks in advance!

adam
07-06-2005, 05:44 PM
I think I figured it out on my own, but if someone could still reply and let me know if this is the proper way, I would appreciate it.

I simply created a file named search.php file (I'm using php obviously, not CGI) that was formatted to my CSS, and then pasted all the info from the original search.php file into the editable region in my new search.php file, and everything seems to work fine. Is this the easiest way to do this? Or should I do something else? Thanks.

wrensoft
07-06-2005, 10:42 PM
No, this is not the best way to do it.

You should edit the search_template.html file (which contains the CSS) and leave the search script alone.

More details are in the FAQ,
http://www.wrensoft.com/zoom/support/faq_howto.html#modifyform
http://www.wrensoft.com/zoom/support/css.html
http://www.wrensoft.com/zoom/support/faq_howto.html#searchform

and in the user guide. (Doesn't anyone read the users guide !!!)
http://www.wrensoft.com/zoom/usersguide.html

-----
David