
MikeB
Staff
/ Moderator

Dec 30, 2005, 4:44 PM
Post #4 of 4
(2854 views)
Shortcut
|
|
Re: [carminejg3] creating your own placeholders
[In reply to]
|
Can't Post
|
|
Hi, Thanks for the post! There are a couple of things you should be able to do if you'd like to show a couple of articles from this category at the bottom of an article. First, you could use the method you described and remove the formatting from the template that Article Manager uses for it's headlines. The only drawback with this is that you wouldn't really be able to use these headlines elsewhere on the site as they'd be really stripped down. The other option is to actually include some search results on your article page. To do this you would make a copy of /artman/templates/search/search_results.html and call this copy search_results_related.html. You'd then strip out any external code (headers and footers etc.) so the only code remaining is the code inside the templatecells that actually outputs the articles. Then, on your article template (/artman/templates/article/default.html) you would use an include that looks like this: <!--#include virtual="/artman/exec/search.cgi?search=1&perpage=5&template=search/search_results_related.html&cat=$cat_num$" --> The include above will bring in 5 results from the same category as the article on your new template file. Give this a try and let me know how it works for you. Don't hesitate to ask if you have any other questions about this! Cheers, Mike Briggs - Product Specialist support@interactivetools.com [hr][i][url "http://www.interactivetools.com/consulting/"][b]Hire me![/b][/url] 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 [url "http://www.interactivetools.com/consulting/"][b]Priority Consulting[/b][/url].[/i]
|