如何对描述字符description限制字数
在eyoucms中,在列表页调用文章摘要的方法主要有:
1:{$field.seo_description}
2:{$field.seo_description|html_msubstr=###,0,90,true}
方法一:
{$field.seo_description}需要配合{eyou:arclist titlelen='40' row='4' infolen='100'}使用,infolen='100'即为调用100个字节。
实例:
{eyou:arclist titlelen='40' row='4' infolen='100' typeid='1'}
—————————
方法二:
{$field.seo_description|html_msubstr=###,0,90,true}可以直接使用
实例:
{eyou:arclist titlelen='40' row='4' typeid='1'}
{/eyou:arclist}
相关文档
上一篇: EYOU 当前栏目页判断有无子栏目





