Search only works on home page

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Post Reply
scotch33
Dev Team Member
Dev Team Member
Posts: 284
Joined: Tue Feb 14, 2006 9:56 pm

Search only works on home page

Post by scotch33 »

Hi,

http://www.im-insured.co.uk/
version 1.11.10

The search system only works on the home page on this site. I've checked the following...

1. is search tag in all templates - yes
2. is content tag in all templates - yes
3. is there any 'search results' or 'details' pages defined in either tag or search options - no (all search tags are the basic {search}

Has anyone come across this sort of oddness? I have even gone so far as to create a copy of the home template and attach it to all the stylesheets accordingly then add a page (the page is http://www.im-insured.co.uk/test/). In theory this page should act exactly the same way as home page. However, as you will see it does not.

Note: in all cases the module call appears in the url - it's just not showing results unless on home.

If anyone can give me a pointer as to what I need to look for, that would be great.

The reason for the need to solve is that on the home page, the results appear in the small content section and we need to thus specify a results page for search., However, until the above is solved, we are unable to get the results showing in the resultsd page (though it does go through)
User avatar
velden
Dev Team Member
Dev Team Member
Posts: 3497
Joined: Mon Nov 28, 2011 9:29 am

Re: Search only works on home page

Post by velden »

It seems to work if you use POST in stead of GET.

Not sure why though.
scotch33
Dev Team Member
Dev Team Member
Posts: 284
Joined: Tue Feb 14, 2006 9:56 pm

Re: Search only works on home page

Post by scotch33 »

Hmm - that's odd. :-) And I am guessing the only way to change the method is in the source code? Fine with that if so, but it's just a drag for upgrades in the future.
User avatar
velden
Dev Team Member
Dev Team Member
Posts: 3497
Joined: Mon Nov 28, 2011 9:29 am

Re: Search only works on home page

Post by velden »

From Search help:
(optional) search_method="get" - Pretty Urls Compatibility via Method POST, default value is always GET, to make this work just put {search search_method="post"}
scotch33
Dev Team Member
Dev Team Member
Posts: 284
Joined: Tue Feb 14, 2006 9:56 pm

Re: Search only works on home page

Post by scotch33 »

that'll do it then. ;-)
Post Reply

Return to “CMSMS Core”