核心提示:為了照顧大多數(shù)站長(zhǎng),本教程傾向于在ecshop模板里修改實(shí)現(xiàn)。以官方默認(rèn)模板為例,打開(kāi) /themes/default/library/help.lbi 文件將!– {foreach from=$help_cat.article item=item} — dda href='{$item.url…
itE-SPACE: normal; LETTER-SPACING: normal; COLOR: rgb(34,34,34); WORD-SPACING: 0px; -webkit-text-stroke-width: 0px">
為了照顧大多數(shù)站長(zhǎng),本教程傾向于在ecshop模板里修改實(shí)現(xiàn)。
以官方默認(rèn)模板為例,
打開(kāi) /themes/default/library/help.lbi 文件
將
<!– {foreach from=$help_cat.article item=item} –>
<dd><a href="{$item.url}" title="{$item.title|escape:html}">{$item.short_title}</a></dd>
<!– {/foreach} –>
修改為
<!– {foreach from=$help_cat.article name="help_list" item=item} –>
{if $smarty.foreach.help_list.iteration lt 6}
<dd><a href="{$item.url}" title="{$item.title|escape:html}">{$item.short_title}</a></dd>
{/if}
<!– {/foreach} –>
未經(jīng)允許不得轉(zhuǎn)載:445IT之家 » ECSHOP幫助中心限制文章條數(shù)的方法