 |

kezza
User
Jan 15, 2006, 4:21 AM
Post #1 of 8
(4424 views)
Shortcut
|
|
Problem with search.cgi ...?
|
Can't Post
|
|
I have a simple search set up on various pages of my site and it displays fine on all pages. However, the same simple search on my search_form page will not display! I cannot see any reason for this - I've tried using a specific path to search.cgi and still it won't display the form. If you check http://bsip.tfxweb.com you'll see that the simple search option appears on every static page; it also appears if you do a simple search. However, if you try advanced search the 'simple search box' (in the same position and using the same code) disappears! I simply cannot figure why this is happening and I'm hoping someone may be able to steer me in the right direction!?!?! Kerry
|
|
|  |
 |

MikeB
Staff
/ Moderator

Jan 15, 2006, 1:25 PM
Post #2 of 8
(4418 views)
Shortcut
|
|
Re: [kezza] Problem with search.cgi ...?
[In reply to]
|
Can't Post
|
|
Hi Kerry, Thanks for the post! I've taken a look at this page and I'm not actually able to tell why this might not be working without having a closer look at this and the code that is being used. If you'd be able to attach a copy of the template file that is being used for this page or the piece of code that should be displaying the search it would be quite a bit easier to look at this and see what might be causing the problem. I look forward to hearing from you Kerry, just let me know if you have any other questions! Cheers, Mike Briggs - Product Specialist support@interactivetools.com
Hire me! Save time by getting our experts to help with your project. Template changes, advanced features, full integration, whatever you need. Whether you need one hour or fifty, get it done fast with Priority Consulting.
|
|
|  |
 |

kezza
User
Jan 16, 2006, 6:35 AM
Post #3 of 8
(4403 views)
Shortcut
|
|
Re: [MikeB] Problem with search.cgi ...?
[In reply to]
|
Can't Post
|
|
Hi Mike - attached are the two templates that (I believe!) relate to this problem. Both of them have the same code for the simple search but the simple search box only seems to appear on the results page and not on the search page! Kerry
|
|
Attachments:
|
search_form.html
(8.89 KB)
|
|
|
search_results.html
(9.89 KB)
|
|
|  |
 |

ross
Staff
/ Moderator

Jan 16, 2006, 1:44 PM
Post #4 of 8
(4395 views)
Shortcut
|
|
Re: [kezza] Problem with search.cgi ...?
[In reply to]
|
Can't Post
|
|
Hi kezza. Thanks for posting your templates. The reason that search box isn’t coming up is because I think you may have gotten your two templates mixed up a little bit. On the search_form.html template you have your quick search box within the <!-- templatecell : search_form --> section. The problem with that is that this section isn’t actually supposed to be on the search form. It’s from the search_results.html template. When a template doesn’t understand one of the templatecells you added to it, all the code within it gets ignored. That’s what was happening here. All the code that usually displays your quick search form is within a template cell that isn’t being understood. I removed those template cells and attached a new template to my post for you. Try it out and let me know if that gets you going again . ----------------------------------------------------------- Cheers, Ross Fairbairn - Product Specialist support@interactivetools.com
Hire me! Save time by getting our experts to help with your project. Template changes, advanced features, full integration, whatever you need. Whether you need one hour or fifty, get it done fast with Priority Consulting.
|
|
Attachments:
|
search_form.html
(3.73 KB)
|
|
|  |
 |

kezza
User
Jan 16, 2006, 1:56 PM
Post #5 of 8
(4394 views)
Shortcut
|
|
Re: [ross] Problem with search.cgi ...?
[In reply to]
|
Can't Post
|
|
Ross thanks for that. I'm going to take a look at it tomorrow. However, it has just occurred to me that there's really very little point in me actually having a simple search option on the advanced search page - it does seem a little superfluous when I think about it. I guess I just had it on there because it was on the results page and it never occurred to me that it wasn't necessary! All I have to do (if I choose to remove it) is think of something to fill the gap!! Thanks (as usual) for your help. Kerry
|
|
|  |
 |

kezza
User
Jan 19, 2006, 2:31 PM
Post #6 of 8
(4325 views)
Shortcut
|
|
Re: [kezza] Problem with search.cgi ...?
[In reply to]
|
Can't Post
|
|
Hi Ross - well I've resolved the issue of the search box not displaying by simply removing it altogether. As mentioned in the previous posting, I realised it was a bit silly to have it there in the first place! However, I've found what I hope is one FINAL problem!! When I run a simple search results are getting duplicated; this doesn't happen when I run an advanced search. I cannot find any reason for this - it doesn't make sense to me!! http://bsip.tfxweb.com If you run a simple search on either jamie or piano you will find that there are two results for each, both of which are identical. If you run the same search as an advanced search site-wide there is only one result each. Have you any idea what may cause this? Thanks Kerry Kerry
|
|
|  |
 |

MikeB
Staff
/ Moderator

Jan 20, 2006, 10:26 AM
Post #7 of 8
(4308 views)
Shortcut
|
|
Re: [kezza] Problem with search.cgi ...?
[In reply to]
|
Can't Post
|
|
Hi Kerry, Thanks for the post! I've taken a look at your site and it looks like the problem you're running into can be resolved by adding one hidden field. On any page of your site where you have the quick search you'll want to find this line of code: <input type="hidden" name="rows" value=5> Directly after the above line you'll want to add this: <input type="hidden" name="categories" value=3> It seems that the problem right now has to do with Search Engine not knowing which specific categories to search through on the quick search. The line above will tell the search to look through the entire site. I hope this helps and if you have any other questions or comments, just let me know! Cheers, Mike Briggs - Product Specialist support@interactivetools.com
Hire me! Save time by getting our experts to help with your project. Template changes, advanced features, full integration, whatever you need. Whether you need one hour or fifty, get it done fast with Priority Consulting.
|
|
|  |
 |

kezza
User
Jan 20, 2006, 12:11 PM
Post #8 of 8
(4305 views)
Shortcut
|
|
Re: [MikeB] Problem with search.cgi ...?
[In reply to]
|
Can't Post
|
|
Perfect I added that onto the home page simple search and it works perfectly. I'll add it to all the other pages in due course and it will resolve the problem! Thanks for that Mike Kerry Kerry
|
|
|  |
|