Home | Products | Consulting | Forums | Support | Order | 1-800-752-0455
  Main
Index
Search
Posts
Who's
Online
Log
In

Home: Products: Article Manager 2:
AM2's Search Engine...

 

 


DefenceTalk.com
User

Oct 24, 2006, 9:29 PM

Post #1 of 4 (350 views)
Shortcut
AM2's Search Engine... Can't Post

 
Is there anyway to tell AM2 or its search engine where the article begins and where it ends and it should only search for keywords in article content/body area?

We've got non-AM2 content displaying on where the published articles are and whenever you search for certain keyword, AM2 displays all articles because it is searching ALL of the article page rather than the body...

Example:
http://www.defencetalk.com/cgi-bin/news/search.cgi

Search for JF-17 keyword. There are about 40-50 articles that mention JF-17 yet it displays result for almost every article. Crazy

Solution?


(This post was edited by DefenceTalk.com on Oct 24, 2006, 9:30 PM)


Dave
Staff / Moderator


Oct 24, 2006, 11:08 PM

Post #2 of 4 (346 views)
Shortcut
Re: [DefenceTalk.com] AM2's Search Engine... [In reply to] Can't Post

Well, the first page looks right.

I think what's going on is the keyword isn't being passed forward in the "next >>" link.

Try editing your "templates/searchEngine/searchResults.html" template. Near the bottom there will some templateIf tags and long links that start with "$settings.searchurl$?". Right after the ? in the link add the following:

keyword=$form.keyword:urlEncoded$&

So it should look something like this:
<a href="$settings.searchurl$?keyword=$form.keyword:urlEncoded$&action=...

Then try your search again and see if the right results are coming up on the second page this time.

Dave Edis - Senior Developer
interactivetools.com


MEKAEEL
User

Oct 25, 2006, 9:37 AM

Post #3 of 4 (330 views)
Shortcut
Re: [Dave] AM2's Search Engine... [In reply to] Can't Post

it worked! I had the same problem and now it's all working.

but I had to add the same for the "<< previous" link since it had the same problem going.

cheers!


DefenceTalk.com
User

Oct 25, 2006, 9:56 AM

Post #4 of 4 (326 views)
Shortcut
Re: [MEKAEEL] AM2's Search Engine... [In reply to] Can't Post

Thank you Dave, that worked very nicely!

 
 
 


Search for (options)
Products
CMS Builder
Article Manager
Realty Manager
Listings Manager
Order Now
Services
Priority Consulting
Support
Online Documentation
Support Forums
Support Homepage
Company Info
12 reasons to choose us!
Meet the team
Monthly newsletter
Contact Us
Toll Free: 1-800-752-0455
Phone: (604) 689-3347
Sales | Support
Conditions of Use | Privacy Policy | Copyright © interactivetools.com 2008
#201 - 2730 Commercial Drive, Vancouver BC Canada V5N 5P4