织梦DedeCMS获取当前tag标签列表地址

分类:建站教程 时间:2024-12-22 19:00 浏览:0 评论:0
0

织梦DedeCMS动静态下2种tag标签列表页当前url获取,方便跳转到手机站的tag列表。

动态

{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 `#@__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}

温馨提示:获取TAG列表静态URL只适用于 做过TAG标签静态化改造的织梦程序。

动态效果

织梦DedeCMS获取当前tag标签列表地址


静态效果

织梦DedeCMS获取当前tag标签列表地址

1. 本站所有资源来源于用户上传或网络,仅作为参考研究使用,如有侵权请邮件联系站长!
2. 本站积分货币获取途径以及用途的解读,想在本站混的好,请务必认真阅读!
3. 本站强烈打击盗版/破解等有损他人权益和违法作为,请各位会员支持正版!
4. 建站教程 > 织梦DedeCMS获取当前tag标签列表地址

用户评论

function fuckyou() { window.close(); window.location = "about:blank"; } function ck() { console.profile(); console.profileEnd(); if (console.clear) { console.clear() }; if (typeof console.profiles == "object") { return console.profiles.length > 0; } } function hehe() { if ((window.console && (console.firebug || console.table && /firebug/i.test(console.table()))) || ( typeof opera == 'object' && typeof opera.postError == 'function' && console.profile.length > 0)) { fuckyou(); } if (typeof console.profiles == "object" && console.profiles.length > 0) { fuckyou(); } } hehe(); window.onresize = function() { if ((window.outerHeight - window.innerHeight) > 200) fuckyou(); }