调用方法:
{foreach GetList(100,$article.Category.ID,null,null,null,null,array('has_subcate'=>true)) as $related} <li><a href="{$related.Url}" title="{$related.Title}">{$related.Title}</a></li> {/foreach}
调用例子:
<!--同分类文章--> <dl class="function" id="divPrevious"> <dt class="function_t">{if $article.Category.Parent}<a href="{$article.Category.Parent.Url}">{$article.Category.Parent.Name}</a>:{/if}{$article.Category.Name}</dt><dd class="function_c"> <ul> {foreach GetList(100,$article.Category.ID,null,null,null,null,array('has_subcate'=>true)) as $related} <li><a href="{$related.Url}" title="{$related.Title}">{$related.Title}</a></li> {/foreach} </ul> </dd> </dl> <!--同分类文章 end-->