search results for news and company directory linking to resultpage

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
AmandaBTO
Forum Members
Forum Members
Posts: 51
Joined: Thu Aug 09, 2007 2:40 pm

search results for news and company directory linking to resultpage

Post by AmandaBTO »

I have a site wide search form in my header that's basically {search resultpage="search-results"}.  The search results are great.  Pages are linking to the pages they should.

The problem is that the news article links and company directory links are staying on the search results page.

The search Help page says 'Note: modules have the ability to override this parameter' for detailpage.  That would be wonderful!  Where can I override this search parameter?  Is it a module setting?  I can't find it anywhere.

I tried adding 'passthru_News_detailpage="press-releases"' to my search tag but no go.  I've been reading some other posts about adding a SearchResultWithParams function to modules/News/News.module.php but that's not right, is it?  I shouldn't have to modify core files to get something from the module Help to work, should I?

Can someone point me in the right direction please?
Thanks
amanda
AmandaBTO
Forum Members
Forum Members
Posts: 51
Joined: Thu Aug 09, 2007 2:40 pm

Re: search results for news and company directory linking to resultpage

Post by AmandaBTO »

Some more info:

I started playing with the SearchResultWithParams option and realized it's really the returnid that's messing up my url.  The returnid was always the id of my search result page even though I wanted it to be the id of the passthru detailpage (passthru_News_detailpage="press-releases").
Post Reply

Return to “CMSMS Core”