POST TIME:2020-04-02 17:29
dedecms内容页调用关键词的方法
1
2
3
4
5
6
7
8
9
10
11
12
|
{dede:field name='keywords' runphp='yes' }
if(!empty(@me))
{
$kws = explode(',',@me);
@me = "";
foreach($kws as $k)
{
@me .= "<ahref='/plus/search.php?keyword=".urlencode($k)."'target=_blank><strong>$k</strong></a> ";
}
@me= str_replace(' ', ' ',trim(@me));
}
|