主题 : 只显示某个子栏目的内容问题 |
级别: 版主
|
4# 发表于:2016-05-12 15:16:09 IP:182.242.*.*
[@cms_channel id='文章id']
[/@cms_channel] 只取文章一个栏目就行了 |
||
---|---|---|---|
级别: 举人
|
5# 发表于:2016-05-12 15:27:54 IP:222.77.*.*
还是不行,因为我的“保险理赔”是在左侧栏目
现在是点击左侧的保险理赔-显示右侧的文章 ps:左侧还有很多跟保险理赔同级别的栏目 创建的模板是: <!DOCTYPE HTML> <html> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>${channel.title!channel.name} - ${site.name} - Powered by JEECMS</title> <head> <!--[if lt IE 9]> <script src="${resSys}/html5.js" type="text/javascript"></script> <![endif]--> <link href="/${res}/css/html5.css" rel="stylesheet" type="text/css"/> <link href="${resSys}/front.css" rel="stylesheet" type="text/css"/> <link href="${resSys}/jqueryUI/jquery.ui.css" rel="stylesheet" type="text/css"/> <script src="${resSys}/jquery.js" type="text/javascript"></script> <script src="${resSys}/jqueryUI/jquery-ui.js" type="text/javascript"></script> <script src="${resSys}/front.js" type="text/javascript"></script> <script type="text/javascript"> $(function() { Cms.siteFlow("${base}", location.href, document.referrer); }); </script> </head> <body> <div class="container"> [#include "../include/header.html"/] [#include "../include/navi.html"/] <div style="float:left;width:30%;"> <div style="width:100%;text-align:left;margin-top:1em;"> 线下咨询 </div> <div style="width:90%;float:left;"> <div class="rim05 mt10"> <div class="LanMu01-2"> <div class="LanMu01-1"></div> <span>列表</span> <div class="LanMu01-3"></div> </div> <div class="softlist"> <ul> [@cms_channel id='163'] [#list tag_list as a] <li> <div class="v-rank3-order3 v-rank3-top3">${a_index+1}</div> <a href="${a.url}" title="${a.title}"> [@text_cut s=a.title len=titLen /] </a> </li> [/#list] [/@cms_channel] </ul> </div> </div> </div> </div> <div style="text-align:right;margin-top:0.5em;"> <input type="button" value="在线咨询" onclick="generalConsulting()"/> <input type="button" value="线下咨询" onclick="consultancy()"/> </div> <div style="float:left;width:65%;margin-top:1em;margin-left:1em;"> <p style="text-align:left;font-size:13px;">您的位置>>热点文章>>XX分类列表</p> <ul style="margin-left:1em;margin-top:0.5em;"> [@cms_content_page count='6' orderBy='4' titLen='24' channelOption='1' recommend='0' channelId=channel.id] [#list tag_pagination.list as a] [#if a.id==445] <li><img src="${a.titleImg!site.defImg}" width="10%"/> <a href="${a.url}" title="${a.title}" target="_blank" style="color:#e66100;">[@text_cut s=a.title len=23 /]</a> [@text_cut s=a.description len=28 /]...<a href="${a.url}"><font color="red">[详细]</font></a> ${a.releaseDate}</li> [#else] <li><img src="${a.titleImg!site.defImg}" width="10%"/><a href="${a.url}" title="${a.title}" target="_blank">[@text_cut s=a.title len=titLen /]</a> [@text_cut s=a.description len=28 /]...<a href="${a.url}"><font color="red">[详细]</font></a> ${a.releaseDate}</li> [/#if] [/#list] [@cms_pagination sysPage='1'/] [/@cms_content_page] </ul> </div> [#include "../include/footer.html"/] <script type="text/javascript"> function consultancy(){ location.href="${base}/index/onlineConsulting.jspx"; } function generalConsulting(){ location.href="${base}/index/onlineLaw.jspx"; } </script> </div> </body> </html> |
||
---|---|---|---|