1.arcList标签:基础的文章调用标签
{dede:arcList limit='0,1' row='10' Titlelen=28 typeID='2' channelID='3' addfIElds='officialurl'} href="[fIEld:arcurl/]" Title"[fIEld:fullTitle/]">[fIEld:Title/]{/dede:arcList}
2.日期调用标签
[fIEld:pubdate function="MyDate('Y-m-d',@me)"/][fIEld:pubdate function="MyDate('m-d',@me)"/]
3.调用文章内容并屏蔽HTML
[fIEld:ID runPHP='yes'] $aID = @me; $row = $GLOBALS['dsql']->Getone("Select body From `_addonarticle` where aID='$aID' "); @me = cn_substr(HTML2text("{$row['body']}"),820);[/fIEld:ID]
4.dede布尔值判断,这个是根据客户要求给浮动广告加一个后台显示控制开关时候所做
{dede:PHP} if(preg_match("#Y#",$cfg_open)) { echo ' class"customer" ID"followdiv" "float_close"> onClick"followdiv.stylevisibility=\'hIDden\'"close
评论列表(0条)