
ross
Staff
/ Moderator

Oct 8, 2006, 8:58 AM
Post #4 of 13
(5455 views)
Shortcut
|
|
Re: [steve_e] Last three articles
[In reply to]
|
Can't Post
|
|
Hi Steve. Thanks for getting back to me! You’ll find that Article Manager is already set to sort the articles based on date, so that part should be happening already. To get a list of the three most recent articles from a specific set of categories showing up, you’ll just need to put a variation of the following include on your page:
<!--#include virtual=”/cgi-bin/artman/exec/search.cgi?search=1&template=search/recent_articles.html&cat=1,2,3,4,5,6 Now, the reason I say a variant of this is because you’ll need to make a few adjustments. First off, make sure the path to your search engine is accurate. Second, the list of categories you want to search through. Have a look at this part: cat=1,2,3,4,5,6 Just change the list of numbers to the category numbers you wanted to search in. You can find out a category’s number by going to the Category editor and clicking modify for the category. On the page that comes up, have a look at the URL. It’s going to look something like this: www.yoursite.come/cgi-bin/artman/exec/admin.cgi?cat_edit=7 That 7 at the end is the category number. You can have as many numbers in your list as you like. One last thing is the template= part. The reason I have that in there is because you’ll want these results to be using a template that only shows the articles instead of all the extra things like category list and headlines file that a search results page shows. I have attached a sample copy of the template I normally use for this kind of setup. Just upload that to your /templates/search folder and you should be good to go. Does that 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: http://www.interactivetools.com/consulting/
|