Main
Index
Search
Posts
Who's
Online
Log
In

Home: Discontinued/Classic Products: Article Manager 1 Add-ons:
Related Article - Same article in results

 

 


cellular
New User

Mar 24, 2005, 3:53 PM

Post #1 of 5 (3527 views)
Shortcut
Related Article - Same article in results Can't Post

Hi,

I've implemented the related articles so that the related articels are listed after the head lines. Everything works as expected but my problem is I don't want the same article that I am on listed in the related articles. Usually when there are other related articles it's not bad but if it lists only that article it looks kind of awkward. Is there any workaround for this.

Thank you,
Cellular


Cliff
Staff


Mar 25, 2005, 11:41 AM

Post #2 of 5 (3516 views)
Shortcut
Re: [cellular] Related Article - Same article in results [In reply to] Can't Post

Hi cellular,

Thanks for posting and welcome to the discussion forum!

If you could pass me a few details on how you are including the related articles, I may be able to suggest a work around for excluding the article that you are viewing from the list. Any additional details that you can provide would be great Smile
Regards,
Cliff Stefanuk - Customer Service Manager
[email]support@interactivetools.com[/email]


cellular
New User

Mar 28, 2005, 4:54 PM

Post #3 of 5 (3488 views)
Shortcut
Re: [Cliff] Related Article - Same article in results [In reply to] Can't Post

This is what I am using for the related articles.

Code
<!--#include virtual="/artman/exec/search.cgi?template=search/related_articles.html&perpage=10&keyword=$art_field2$&start=1" -->


I just have this in palce of the headlines on the right side.

art_field2 is the field I am using to store the keywords.


ross
Staff / Moderator


Mar 29, 2005, 2:57 PM

Post #4 of 5 (3475 views)
Shortcut
Re: [cellular] Related Article - Same article in results [In reply to] Can't Post

Hi cellular.

Thanks for posting up that code!

Unfortunetly though, I am actually too sure if you would be able to exclude the current article though. This does seem like an excellent example of how adding Boolean operators in search queries though. What I am going to do is add this as a feature request so that when the developers are looking at the next version of Article Manager (after MySQL) they can try to get this incorporated.

I hope this helps. Just let me know if you have anymore questions Smile.
-----------------------------------------------------------
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: http://www.interactivetools.com/consulting/



Mike4172
User

Mar 29, 2005, 3:20 PM

Post #5 of 5 (3474 views)
Shortcut
Re: [cellular] Related Article - Same article in results [In reply to] Can't Post

Curious if you tried a .php if statement script? If you put in a .php if statment inside the search_results.html template, you might be able to exclude the current article from being displayed.

Regards,
Michael
[red]NEW![/red][url "http://amscripts.net/webdesign/#logo"]Logo and Website Design[/url]
[url "http://amscripts.net/amaddons/#apde"]Auto Post Date and Expiration[/url]
[url "http://amscripts.net/amaddons/#goforum"]GoForum 2.02[/url]
[url]http://www.amscripts.net[/url]
[url "http://www.skype.com"]SKYPE[/url] - michael.amscripts