使用灵动标签中的条件来排除特定栏目内容 示例代码: [e:loop={0,20,5,1,'id not in(7,9,15,16)','newstime DESC'}] <a href="<?=$bqsr['titleurl...
去除竖线分隔符: 使用str_replace函数替换竖线分隔符。 示例代码: <?= esub(str_replace("|", " ", $bqr['type']), 10) ?>...
[e:loop={"select DISTINCT(phome_enewstags.tagname),phome_enewstags.tagid,phome_enewstags.num from phome_enewstags inner...
调用tags: 使用以下代码: [e:loop={"select * from cn_enewstags order by num desc limit 30", 0, 24, 0}] <li><a href=...
问题:如何在帝国CMS中使用灵动标签给最新信息添加最新图标? 答案:在灵动标签中判断日期并在标题后面添加最新图标。 [e:loop={24,10,0,1}] <?php $newspic = ""; if (date("m-d...
限制标题字数 <?=esub($bqr[title], 40)?> 限制简介字数 <?=esub($bqr[smalltext], 200)?&...
调用默认图片 <?=$bqr[titlepic] ? $bqr[titlepic] : '/e/data/images/notimg.gif'?> 调用其他图片字段 ...
基本使用 <?=date('Y-m-d H:i:s', $bqr[newstime])?> 只显示日期 <?=date('Y-m-d', $bq...
内容页面链接: 使用函数: $infourl = sys_ReturnBqTitleLink($r); $r 是包含 id, classid, newspath, filename, groupid, t...
方法一:PHP 处理: <?php $cfbt = "|"; ?> [e:loop={'11,14,17,18,',22,0,0,'firsttitle=0','newstimeDESC'}] <?php if...