帝国cms 列表内容模板(list.var)如果smalltext字段为空则调用其他字段内容
帝国cms 列表内容模板(list.var)如果smalltext字段为空则调用其他字段内容的方法。
// 检查 smalltext 是否为空$smalltext = mb_substr(strip_tags($r['smalltext']), 0, 120, 'UTF-8');if (empty($smalltext)) { $smalltext = mb_substr(strip_tags($r['qt']), 0, 120, 'UTF-8');}$listtemp = '<li><a href="[!--titleurl--]" title="[!--title--]" class="item-title">[!--title--]</a><div class="intro-text">' . $smalltext . '...</div><time class="pub-date" datetime="[!--newstime--]" itemprop="datePublished" title="[!--newstime--]"></time></li>';
下一篇:帝国CMS列表页面list.var分别调用时间显示个性时间日期方法
列表内容模板
DedeCMS 核心类TypeLink.class.p
织梦cms系统TAG标签和分页伪静态
织梦cms列表页/内容页调用当前文
dedecms会员中心常用信息输出
dede搜索结果页支持article、sql
织梦cms批量取消审核文档的实现
织梦dedecms wap手机门户站点首
织梦dedecms在模板页面中实现会
织梦导航不显示外部链接栏目,修
织梦dedecms使用Mysql8.0无法登