VIP福利
主页 > 建站问题 > 织梦技巧 > dedecms5.7织梦模板文章内容页如何调用关键词增加链接

dedecms5.7织梦模板文章内容页如何调用关键词增加链接

dedecms5.7文章内容页调用关键词增加链接的方法 01 {dede:field name= keywords runphp= yes } 02 if (!empty(@me)) 03 { 04 $kws = explode( , ,@me); 05 @me = ; 06 foreach($kws as $k) 07 { 08 @me .= a href=/plus/search.php?keyword= .urlencode($k). target=_blank h2$k/h2/a ; 09 } 1 […]



dedecms5.7文章内容页调用关键词增加链接的方法
01 {dede:field name='keywords' runphp='yes' }
02                     if(!empty(@me))
03                     {
04                         $kws = explode(',',@me);
05                         @me = "";
06                         foreach($kws as $k)
07                         {
08                            @me .= "<a href='/plus/search.php?keyword=".urlencode($k)."' target=_blank ><h2>$k</h2></a> ";
09                         }
10                          @me= str_replace(' '' ',trim(@me));
11                     }
12  {/dede:field}


共有 条评论