 |

wendy
User
Apr 23, 2007, 3:45 PM
Post #1 of 7
(1286 views)
Shortcut
|
|
Using search.cgi criteria in art_field
|
Can't Post
|
|
Hi - I have two categories (news, companies). Each news story is associated with a company. I want to be able to display the news articles that relate to a specific company on the company page. I am using art_field10 as a key word field, in which I put the company name. I made art_field15 the "news link" field in which I want to put the appropriate search.cgi criteria for the article. For example: <!-- #include virtual="/cgi-bin/artman/exec/search.cgi?cat=1&perpage=999&fields=art_field10&keyword=(companyname)&template=search/headlines_news.html" --> so when I called out "art_field15" in the template, the search.cgi results would display. Is there a way to do this? Thanks, Wendy
|
|
|  |
 |

ross
Staff
/ Moderator

Apr 24, 2007, 1:41 PM
Post #2 of 7
(1283 views)
Shortcut
|
|
Re: [wendy] Using search.cgi criteria in art_field
[In reply to]
|
Can't Post
|
|
Hi Wendy Thanks for posting! I have to admit though, I am not quite sure what you are trying to setup here . Could you give me some more details? From the sounds of it you have a couple different pages on your site that you want to have specific list of articles appear on. Each page would have a different list of articles and the way you wanted to say what page each article belonged on was with art_field15. Does that sound about right? If you could get some more details, I can see what options you have . ----------------------------------------------------------- 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.
|
|
|  |
 |

wendy
User
Apr 24, 2007, 5:56 PM
Post #3 of 7
(1279 views)
Shortcut
|
|
Re: [ross] Using search.cgi criteria in art_field
[In reply to]
|
Can't Post
|
|
Thanks Ross. Here's what I'm aiming to do: 1) I have a "news" page (news.shtml), on which appears all the articles in artman. 2) I have serveral "portfolio" pages, on which I want to appear only articles related to that portfolio company In artman, I've created a keyword field (art_field10) in which I put the name of the portfolio company the news article relates too. If I was going to put the article on a non-template page, I use would use this: <!-- #include virtual="/cgi-bin/artman/exec/search.cgi?cat=1&perpage=999&fields=art_field10&keyword=(companyname)&template=search/headlines_news.html" --> But, I want to put this on the portfolio template page so I've created "art_field15", in which I want to include the appropriate search.cgi criteria (it would be different for each portfolio record as the keyword would be different) so when each page is generated, the news stories tagged with the appropriate keyword, appear on the page. Is that more clear? Perhaps there is some javascript I can put in the field? Thanks, Wendy
|
|
|  |
 |

ChetW
Staff

Apr 25, 2007, 1:53 PM
Post #4 of 7
(1273 views)
Shortcut
|
|
Re: [wendy] Using search.cgi criteria in art_field
[In reply to]
|
Can't Post
|
|
Hi Wendy, Thanks for the follow-up! I have been reading through this here and can see everything that your doing up until you begin using art_field15. Which leads me to a few questions. Are you hoping to using the the search query on your "portfolio" categories index page, or is this query going to be used on a full article page? If your goal is to use the query on a full article page then you could use art_field10 and not have to worry about art_field15 at all. :) Am I correct in assuming that you want to have related articles appearng on your full "portfolio" page articles? Once I have a better understanding of your needs I'll be happy to help get things all set-up. :) Cheers, Chet Woodside - 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.
|
|
|  |
 |

wendy
User
Apr 25, 2007, 4:05 PM
Post #5 of 7
(1272 views)
Shortcut
|
|
Re: [ChetW] Using search.cgi criteria in art_field
[In reply to]
|
Can't Post
|
|
Hi Chet - My goal is to see an article list (headlines) on the portfolio page - then a user could click on a link to the full article. Does that help?
|
|
|  |
 |

ChetW
Staff

Apr 26, 2007, 2:56 PM
Post #6 of 7
(1267 views)
Shortcut
|
|
Re: [wendy] Using search.cgi criteria in art_field
[In reply to]
|
Can't Post
|
|
Hi Wendy, Thanks for the follow-up! This should be real simple then, in fact your about 90% of the way. All you will have to do is edit the chunk of code you sampled above, you will want to change the code to this:
<!-- #include virtual="/cgi-bin/artman/exec/search.cgi?cat=1&perpage=999&fields=art_field10&keyword=$art_field10$template=search/headlines_news.html" --> Add this new chunk of code to your article page template files. After this is published by Article Manager this placeholder: $art_field10$ Will be replaced with whichever value had been selected for the Article that's being viewed. :) Give this a try Wendy and if you have any other questions please feel free to ask. Cheers, Chet Woodside - 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.
|
|
|  |
 |

wendy
User
Jun 1, 2007, 1:19 PM
Post #7 of 7
(1126 views)
Shortcut
|
|
Re: [ChetW] Using search.cgi criteria in art_field
[In reply to]
|
Can't Post
|
|
Hi - Just a follow up - this worked perfectly. Thank you so much!
|
|
|  |
|