30Blog

ZBlog Development Tutorial: Calling Methods for Introduction to Article List

Calling method of article list introduction in ZBlog template development:

 {php}$description = preg_replace('/\s(?=\s)/', '', trim(SubStrUTF8(TransferHTML($article->Content,'[nohtml]'),100)).'...'); {/php}

100 refers to the number of text called, which can be modified according to the situation;

The label displayed in the call introduction is:

 {$description}


QQ pre-sales consultation