1.如果是列表页使用以下代码:
[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]
如果是内容页使用以下代码:
{dede: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; {/dede:field.id}
修改方法: 编辑打开\include\taglib\flink.lib.php 查找 elseif($type==image) 在其上面加入 elseif($type==option){$link=optionvalue=.$dbro
首先打开include\archive.helper.php 查找: $tagss=explode(,,$tags); 改成: $tagss=explode(,$tags); 继续查找: $tags=explode(,,$tag); 改成
上一篇地址 {dede:prenextget=prorunphp=yes}preg_match_all(/(.+?)/sim,@me,$strResult,PREG_PATTERN_ORDER);@me=$strResult[1][0];{/dede:prenext} 下一篇