主题 : 如何在首页调用指定ID的*题 |
级别: 状元
|
2# 发表于:2013-05-27 16:21:58 IP:220.48.*.*
[@cms_topic_list count='4' recommend='1' descLen='35' append='...']
[#list tag_list as t] <dl class="list[#if t_index=0] line[#else] mt5[/#if] box"> <dt><a href="${base}/topic/${t.id}.jspx" target="_blank">${t.name}</a></dt> <dd class="pic"><a href="${base}/topic/${t.id}.jspx"><img src="${t.titleImg!site.defImg}"/></a></dd> <dd class="text">[@text_cut s=t.description len=descLen append=append/]</dd> </dl> [/#list] [/@cms_topic_list] </div> |
||
---|---|---|---|
级别: 举人
|
6# 发表于:2013-05-27 16:29:50 IP:113.226.*.*
我改成这样:
[@cms_topic_list count='4' recommend='1' descLen='35' append='...' topicId='14'] [#list tag_list as t] <a href="${base}/topic/${t.id}.jspx"><img src="${t.titleImg!site.defImg}"/></a> [/#list] [/@cms_topic_list] 读到的始终是取的第一个哦,取不到14这个 |
||
---|---|---|---|
级别: 举人
|
8# 发表于:2013-05-27 16:38:45 IP:113.226.*.*
[@cms_topic_list count='1' recommend='1' id='14']
[#list tag_list as t] <a href="${base}/topic/${t.id}.jspx"><img src="${t.titleImg!site.defImg}"/></a> [/#list] [/@cms_topic_list] 这么写了,没用还是读不到指定的14这个专题 |
||
---|---|---|---|
级别: 举人
|
10# 发表于:2013-05-27 16:50:42 IP:113.226.*.*
老大,还是不行呢,改成这样也还是读的是第一个专题
[@cms_topic_list count='1' recommend='1' topicid='14'] [#list tag_list as t] <a href="${base}/topic/${t.id}.jspx"><img src="${t.titleImg!site.defImg}"/></a> [/#list] [/@cms_topic_list] |
||
---|---|---|---|