Ecshop后台不能控制调用文章的数量,需要修改库文件,以官方默认为例,修改library目录下的help.lbi文件,加上红色部分的代码即可,其中5可以改为你想要的数量。
01 | <meta
http-equiv= "Content-Type"
content= "text/html; charset=utf-8" > |
03 | <!--
{ foreach from= $helps
item=help_cat}
--> |
05 | <dt><a
href= '{$help_cat.cat_id}'
title= "{$help_cat.cat_name}" >{ $help_cat .cat_name}</a></dt> |
06 | <!-- { foreach from= $help_cat .article
item=item <span style= "color: #ff0000;" >name=articles_foreach</span>}
--> |
07 | <span style= "color: #ff0000;" ><!--
{ if $smarty . foreach .articles_foreach.index <=
5}--> |
08 | </span>
<dd><a
href= "{$item.url}"
title= "{$item.title|escape:html}" >{ $item .short_title}</a></dd> |
09 | <span style= "color: #ff0000;" ><!--{/ if }--> |
10 | </span>
<!-- {/ foreach }
--> |