 |

thatscountry
User
Dec 15, 2006, 7:11 AM
Post #1 of 8
(435 views)
Shortcut
|
|
Use script from one license to another on same domain
|
Can't Post
|
|
Does anyone know if there is a way of doing the following: I have separate AM programs running on the same domain. AM1 is basically a country news site (www.thatscountry.com) and AM2 is an artist profile site using the WYSIWYG editor page breaks to make a 3 or 4 page profile. Using the same license would not be an option as the sorting, etc is totally different. What I would like to do is have a list of Related Articles from AM1 appearing on the artist profiles on AM2. I do have the script set up on AM1. Is there any way of running it on AM2? *************** Marti Clayton That's Country
|
|
|  |
 |

ross
Staff
/ Moderator

Dec 17, 2006, 11:15 AM
Post #2 of 8
(421 views)
Shortcut
|
|
Re: [thatscountry] Use script from one license to another on same domain
[In reply to]
|
Can't Post
|
|
Hi there. Thanks for posting! I have to admit that I haven't actually seen something like this setup but I am pretty sure it can be done . Both systems can handle related articles already by setting up a field to enter keywords into for every article. You then use the search engine to pull up a list of all the articles that have the same keywords in them as the article you are currently looking at. The only difference here is that on the pages created by Article Manager 2 you would actually be linking to the search engine from Article Manager 1. Does that sound like it will work for you? Let me know and I'll start going over it in more detail . ----------------------------------------------------------- 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.
|
|
|  |
 |

thatscountry
User
Dec 17, 2006, 11:44 AM
Post #3 of 8
(417 views)
Shortcut
|
|
Re: [ross] Use script from one license to another on same domain
[In reply to]
|
Can't Post
|
|
YEEESSSSS PLEEEEASE!!!!! I would be so grateful! Thanks Ross..... My only other Christmas wish is the multiple category option!!! *************** Marti Clayton That's Country
(This post was edited by thatscountry on Dec 17, 2006, 11:46 AM)
|
|
|  |
 |

thatscountry
User
Dec 19, 2006, 7:27 AM
Post #4 of 8
(403 views)
Shortcut
|
|
Re: [ross] Use script from one license to another on same domain
[In reply to]
|
Can't Post
|
|
I have looked at this but can't come up with the right code to make it work. Your help would be very much appreciated. *************** Marti Clayton That's Country
|
|
|  |
 |

ross
Staff
/ Moderator

Dec 19, 2006, 1:11 PM
Post #5 of 8
(393 views)
Shortcut
|
|
Re: [thatscountry] Use script from one license to another on same domain
[In reply to]
|
Can't Post
|
|
Hi Marti. Thanks for hanging on . The link you are going to be using will end up being a little tricky but here's an example you can use for reference:
/cgi-bin/artman/exec/search.cgi?fields=art_field16&keyword=$article.keyword$&template=search/relatedArticles.html Now, there are going to be a few things that will need to be changed here. First, the path to your search engine. Make sure this is the path to your search engine in Article Manager 1. Second, art_field16. That will need to be the field in Article Manager 1 you are using for keywords. Third, $article.keyword$. This will need to be the field that you setup in Article Manager 2 for saving keywords to. Now, as a tip, you'll want to only have one keyword in Article Manager 2 articles because the searching in Article Manager 1 is phrase based. You can have as many different keywords as you like in Article Manager one though. Does this all make sense? Give it a shot and let me know how you make out . ----------------------------------------------------------- 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.
|
|
|  |
 |

thatscountry
User
Dec 19, 2006, 2:02 PM
Post #6 of 8
(390 views)
Shortcut
|
|
Re: [ross] Use script from one license to another on same domain
[In reply to]
|
Can't Post
|
|
OOPS! I didn't make this clear enough. I am already using am2 on the originating search engine so the code you gave me won't work on this one. I'm using am2 with both licenses. I tried using the following code as well as the .com code but both result in errors on the page. <!-- templateIf : $article.keyword$ ne "" --> <!--#include virtual="/home/xxxxxxx/public_html/cgi-bin/am2/search.cgi?action=search&keywordSearchFields=keyword&keyword=$article.keyword$&template=searchEngine/relatedArticles.html&perpage=10" --> <br> <!-- /templateIf --> I just don't know how to point it to the other license. *************** Marti Clayton That's Country
|
|
|  |
 |

ross
Staff
/ Moderator

Dec 20, 2006, 2:06 PM
Post #7 of 8
(382 views)
Shortcut
|
|
Re: [thatscountry] Use script from one license to another on same domain
[In reply to]
|
Can't Post
|
|
Hi Marti. Thanks for the update! From the looks of it, your search criteria are going to be good so we just need to work on the path a little bit. Basically, to get the path for a virtual include, you would just need to bring the page up in your browser. In this case, you would need to bring up your first licenses search page. Let's say it looks like this: http://www.yoursite.com/cgi-bin/artman/search.cgi Your virtual include would look like this: <!--#include virtual="/cgi-bin/artman/search.cgi" --> Notice how I just chopped off the domain part there and left the rest. That's how you'll get what needs to be in the first part of your path. Once you get it, just add the criteria stuff after it and you should be good to go. Give this a shot and let me know how you make out . ----------------------------------------------------------- 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.
|
|
|  |
 |

thatscountry
User
Dec 20, 2006, 3:52 PM
Post #8 of 8
(379 views)
Shortcut
|
|
Re: [ross] Use script from one license to another on same domain
[In reply to]
|
Can't Post
|
|
Thank you so much Ross! It works like a charm! I think what I did wrong was to put the $ signs before and after the path. This is getting really exciting as I wasn't into the design of the site as much when I started That's Country. At that time, I knew so little about web-anything, I was just happy when I got an article up there. With this section, it's fun building a whole new look for the site.... Article Manager 2 is truly amazing!!!!!! Happy Holidays..... *************** Marti Clayton That's Country
|
|
|  |
|