織夢列表頁調(diào)用TAG標(biāo)簽,一般是不帶鏈接的,用以下方式實現(xiàn)帶鏈接TAG標(biāo)簽
在列表頁模板相應(yīng)位置上插入以下代碼:
[field:id runphp='yes'] global $cfg_cmspath; $tags = GetTags(@me); $revalue = ''; $tags = explode(',', $tags); foreach($tags as $key => $value){ if($value){ $revalue .= '<a href="'.$cfg_cmspath.'/tags.php?/'.$value.'/">'.$value.'</a> '; } } @me = $revalue; [/field:id]
效果圖:
(此圖片來源于網(wǎng)絡(luò),如有侵權(quán),請聯(lián)系刪除! )