View Full Version : list with article, the 5 last articles in the same category on related articles box
siemens
01-22-2008, 06:37 PM
Hi,
Please to let me know how can I list with the article ,the 5 last articles in the same category on related articles box ?
thanks
Micha
01-23-2008, 08:45 AM
You can use "Article wizard" plug-in to accomplish this.
http://www.vivvo.net/doc/v4/plugin_manual/article_wizard.php
siemens
02-19-2008, 12:04 AM
Hi,
to create listing (right box) of the last 5 articles in the same category I have created file called same.tpl with following content :
<vte:if test="{VIVVO_MODULES_MOST_POPULAR}"> <vte:box module="box_article_list"> <vte:params> <vte:param name="cache" value="1" /> <vte:param name="search_sort_by" value="order_num" /> <vte:param name="search_limit" value="5" /> <vte:param name="search_cid" value="{article.get_category_id}" /> <vte:param name="search_order" value="descending" /> <vte:param name="search_exclude_id" value="{article.get_id}" /> </vte:params> <vte:template> <div id="box_most_popular" class="box"> <div class="box_title_holder"><div class="box_title">Same :</div></div> <div class="box_body"> <div class="box_content"> <ul> <vte:foreach item = "article" from = "{article_list}"> <li> <a href="{article.get_href}"><vte:value select="{article.get_title}" /></a> <font color="#ff0000" size="1"><vte:value select="{article.get_created}" /></font> </li> </vte:foreach> </ul> </div> </div> </div> </vte:template> </vte:box></vte:if>
ps :
1- I have added the creation date to each article
2- I exclude from listing the displayed article <vte:param name="search_exclude_id" value="{article.get_id}" />
siemens :D
vBulletin® v3.8.4, Copyright ©2000-2013, Jelsoft Enterprises Ltd.