找资源's Archiver
社区首页
›
教程资源
› 织梦dedecms栏目内容自动标签的方法
muban大师
发表于 2020-3-11 10:01:07
织梦dedecms栏目内容自动标签的方法
织梦dedecms栏目内容自动标签的方法,处理写法如下:
{dede:field.content runphp="yes"}
$str = preg_replace("/^s+/", "", html2text(@me));
if( !empty($str)){
@me = ''.@me.'';
}else{
@me = '';
}
{/dede:field.content}
由于栏目内容默认有标签或者空格吧,所以要先处理。
页:
[1]
查看完整版本:
织梦dedecms栏目内容自动标签的方法