dedecms5.7织梦模板文章内容页如何调用关键词增加链接
dedecms5.7文章内容页调用关键词增加链接的方法
{dede:field name='keywords' runphp='yes' } if(!empty(@me)) { $kws = explode(',',@me); @me = ""; foreach($kws as $k) { @me .= "<a href='/plus/search.php?keyword=".urlencode($k)."' target=_blank ><h2>$k</h2></a> "; } @me= str_replace(' ', ' ',trim(@me)); } {/dede:field} |