Search "resultpage" suddenly stopped working

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
User avatar
tinhat
Forum Members
Forum Members
Posts: 65
Joined: Fri May 23, 2008 6:33 am
Location: Sydney, Australia

Re: Search "resultpage" suddenly stopped working

Post by tinhat »

For the record...

I've just waisted my afternoon on a similar problem. The search function was misbehaving all of a sudden - not displaying to the correct resultpage, and all the html header missing on the results page (including css).

Turns out it was some smarty logic I had put into a global content block which was called into my page template. The smarty code was expecting to assign {content} to a variable then do some string manipulation. Of course, the search result page has no content in the {content} block. I put some conditional logic into my smarty code to tell it to skip over the logic for the search-results page and it's working again. Phew.

Hope that helps someone in the future.
Post Reply

Return to “Modules/Add-Ons”