帝国cms自定义列表做标签聚合页教程
时间:2024年04月23日
/来源:网络
/编辑:佚名
添加自定义列表,
统计记录
select count(*) as total from phome_enewstags
查询记录
select tagid as id,tagname as title from phome_enewstags order by tagid desc
标签聚合列表模板
<?php
if($class_r[$GLOBALS[navclassid]][bclassid]==0){
$classid=$GLOBALS['navclassid'];
$classname=$class_r[$classid][classname];
}else{
$classid=$class_r[$GLOBALS[navclassid]][bclassid];
$classname=$class_r[$classid][classname];
$fclass=sys_ReturnBqClassUrl($class_r[$classid]);//父栏目 URL
}
?>
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>[!--pagetitle--] - <?=$public_r[sitename]?></title>
<meta name="keywords" content="[!--pagekey--]">
<meta name="description" content="[!--pagedes--]">
<meta http-equiv="x-dns-prefetch-control" content="on" />
<meta http-equiv="Cache-Control" content="no-transform" />
<meta http-equiv="Cache-Control" content="no-siteapp" />
<link href="/skin/zhann/css/list.css" rel="stylesheet" type="text/css" />
<script src="/skin/zhann/js/head.js"></script>
<script src="/skin/zhann/js/myfocus-2.0.4.min.js"></script>
<!--移动适配star-->
<script type="text/javascript">
(function(){
var ua = navigator.userAgent.toLowerCase();
var bIsIpad = ua.match(/ipad/i) == "ipad";
var bIsIphoneOs = ua.match(/iphone os/i) == "iphone os";
var bIsAndroid = ua.match(/android/i) == "android";
var bIsWM=ua.match(/windows mobile/i)=="windows mobile";
var host = "<?=$public_r['add_zhann_murl']?>";
var pathname = window.location.pathname;
if(bIsIpad||bIsIphoneOs||bIsAndroid||bIsWM){
window.location.href =host + pathname;
}
})();
</script>
<!--移动适配end-->
</head>
<body>
[!--temp.header--]
<div class="list_con con clear">
<div class="main">
<div class="ls_con_nr">
<div class="con_l1 fl">
<div class="ls_list bg yj_10 bj_mt10">
<div class="head_2">
<div class="fl lm_head_l">
<h3>
<em class="iconfont cb f24"></em>
<span href="#" class="f24 ca">最新标签</span>
</h3>
</div>
</div>
<ul class="ls_list_ul bj_mt301">
[!--empirenews.listtemp--]<!--list.var1-->[!--empirenews.listtemp--]
</ul>
</div>
</div>
</div>
<div class="pnum">
<ul>
[!--show.listpage--]
<div class="clear"></div>
</ul>
</div>
<div class="clear"></div>
</div>
</div>
</div>
<footer class="bj_mt30 bg2">
<div class="footer_b bg_a bj_mt30">
</div>
</footer>
<script src="/skin/zhann/js/footer.js"></script>
<script src="/skin/zhann/js/index.js"></script>
</body>
</html>
帝国cms列表页模板
list.var代码
<li><a href="/tag/[!--id--].html" target="_blank">[!--title--]</a></li>
案例图:
统计记录
select count(*) as total from phome_enewstags
查询记录
select tagid as id,tagname as title from phome_enewstags order by tagid desc
标签聚合列表模板
<?php
if($class_r[$GLOBALS[navclassid]][bclassid]==0){
$classid=$GLOBALS['navclassid'];
$classname=$class_r[$classid][classname];
}else{
$classid=$class_r[$GLOBALS[navclassid]][bclassid];
$classname=$class_r[$classid][classname];
$fclass=sys_ReturnBqClassUrl($class_r[$classid]);//父栏目 URL
}
?>
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>[!--pagetitle--] - <?=$public_r[sitename]?></title>
<meta name="keywords" content="[!--pagekey--]">
<meta name="description" content="[!--pagedes--]">
<meta http-equiv="x-dns-prefetch-control" content="on" />
<meta http-equiv="Cache-Control" content="no-transform" />
<meta http-equiv="Cache-Control" content="no-siteapp" />
<link href="/skin/zhann/css/list.css" rel="stylesheet" type="text/css" />
<script src="/skin/zhann/js/head.js"></script>
<script src="/skin/zhann/js/myfocus-2.0.4.min.js"></script>
<!--移动适配star-->
<script type="text/javascript">
(function(){
var ua = navigator.userAgent.toLowerCase();
var bIsIpad = ua.match(/ipad/i) == "ipad";
var bIsIphoneOs = ua.match(/iphone os/i) == "iphone os";
var bIsAndroid = ua.match(/android/i) == "android";
var bIsWM=ua.match(/windows mobile/i)=="windows mobile";
var host = "<?=$public_r['add_zhann_murl']?>";
var pathname = window.location.pathname;
if(bIsIpad||bIsIphoneOs||bIsAndroid||bIsWM){
window.location.href =host + pathname;
}
})();
</script>
<!--移动适配end-->
</head>
<body>
[!--temp.header--]
<div class="list_con con clear">
<div class="main">
<div class="ls_con_nr">
<div class="con_l1 fl">
<div class="ls_list bg yj_10 bj_mt10">
<div class="head_2">
<div class="fl lm_head_l">
<h3>
<em class="iconfont cb f24"></em>
<span href="#" class="f24 ca">最新标签</span>
</h3>
</div>
</div>
<ul class="ls_list_ul bj_mt301">
[!--empirenews.listtemp--]<!--list.var1-->[!--empirenews.listtemp--]
</ul>
</div>
</div>
</div>
<div class="pnum">
<ul>
[!--show.listpage--]
<div class="clear"></div>
</ul>
</div>
<div class="clear"></div>
</div>
</div>
</div>
<footer class="bj_mt30 bg2">
<div class="footer_b bg_a bj_mt30">
</div>
</footer>
<script src="/skin/zhann/js/footer.js"></script>
<script src="/skin/zhann/js/index.js"></script>
</body>
</html>
帝国cms列表页模板
list.var代码
<li><a href="/tag/[!--id--].html" target="_blank">[!--title--]</a></li>
案例图:
新闻资讯 更多
- 【帝国cms教程】帝国cms自定义列表做标签聚合页教程04-23
- 【帝国cms教程】帝国cms灵动标签如何调用任意栏目名称和链接?(帝国灵动标签调用任意栏目名称+链接的方法)04-23
- 【帝国cms教程】帝国CMS灵动标签栏目分类的排序写法/栏目排序04-23
- 【帝国cms教程】帝国cms首页模板展示终极栏目切换效果及显示栏目下文章04-23
- 【帝国cms教程】帝国cms页面css 完美解决图片变形问题04-23
- 【帝国cms教程】帝国cms中php获取当前时间农历日历代码04-23
- 【帝国cms教程】帝国cms内容页实现点击按钮后js随机跳转到一篇文章04-23
- 【帝国cms教程】帝国cms内容页调用某个字段php判断值为空没有填写就不显示04-23
热门文章
- 178Moban源码谈谈免费源码与收费源码的区别
- 2帝国CMS忘记后台登陆用户名、密码、认证码的解决方法
- 3帝国CMS(EmpireCMS) v7.5后台任意代码执行漏洞及具体修复方法
- 4帝国CMS和WordPress 哪个好?哪个适合建站?
- 5如何解决Discuz的密码错误次数过多请15分钟后登陆的问题
- 6帝国cms灵动标签取得内容和栏目链接地址
- 7emlog pro 注册码“开心”教程(如果有一天,emlog官方版 或者 emlog免费版 跑路了,那用户怎么办?)
- 8帝国cms后台登录出现”您还未登录”怎么解决?
- 9织梦CMS在nginx下设置伪静态方法(附nginx伪静态规则)
- 10帝国cms7.5忘记登录密码 和忘记登录认证码以及多次登录 失败被锁定解决办法