cms秀模板网|织梦模板|静态模板|特效模板的dedecms模板下载平台logo

织梦tag标签当前列表地址(动静态)

 2019-08-31
 来源:未知
摘要:动态 {dede:field.title runphp=yes}global $cfg_cmsurl;@me = $cfg_cmsurl."/tags.php?/".urlencode(@me)."/";{/dede:field.title} 静态(生成拼音形式) {dede:field.title runphp=yes}global $dsql,$cfg_cmsurl;$tag = @me;$arcRow = $dsql-GetOne

动态

{dede:field.title runphp=yes}global $cfg_cmsurl;@me = $cfg_cmsurl."/tags.php?/".urlencode(@me)."/";{/dede:field.title}

静态(生成拼音形式)

{dede:field.title runphp=yes}global $dsql,$cfg_cmsurl;$tag = @me;$arcRow = $dsql->GetOne("Select * From `dede_tagindex` where tag like '$tag' ");$pinyin_title = GetPinyin(stripslashes($arcRow["tag"]));$pinyin_title = str_replace("?","",$pinyin_title);$pinyin_title = str_replace(":","",$pinyin_title);@me = $cfg_cmsurl."/tag/".$pinyin_title."_".$arcRow["id"]."_1.html";{/dede:field.title}