主题 : 急求大神们给个回复 |
级别: 贡士
![]() |
1# 发表于:2015-06-08 10:23:03 IP:222.201.*.*
|
||||
---|---|---|---|---|---|
级别: 贡士
![]() |
3# 发表于:2015-06-08 10:26:53 IP:222.201.*.*
回复第2楼:恩,是的,所有栏目的刚发布的都显示在前面
|
||
---|---|---|---|
级别: 版主
![]() |
4# 发表于:2015-06-08 10:28:11 IP:220.5.*.*
channelOption参数和typeId去掉,然后加个orderBy参数
orderBy :排序方式 0:ID降序 1:ID升序 2:发布时间降序 3:发布时间升序 |
||
---|---|---|---|
级别: 贡士
![]() |
5# 发表于:2015-06-08 10:33:05 IP:222.201.*.*
回复第4楼:channelId还需要写么
|
||
---|---|---|---|
级别: 贡士
![]() |
7# 发表于:2015-06-08 10:46:03 IP:222.201.*.*
回复第6楼:还有一个问题就是,我从后台管理那里按照发布时间排序,为啥不是按照列表显示的发布时间排序的啊
![]() |
||
---|---|---|---|
级别: 贡士
![]() |
9# 发表于:2015-06-08 10:48:14 IP:222.201.*.*
回复第8楼什么是排序时间
|
||
---|---|---|---|
级别: 贡士
![]() |
10# 发表于:2015-06-08 10:49:30 IP:222.201.*.*
回复第8楼这是现在的代码:
<div class="text"> [@cms_content_list count='5' titLen='20' descLen='58' dateFormat='yyyy-MM-dd' append='...' orderBy='2'] [#list tag_list as a] [#if a_index = 0] <li> <a href="${a.url}" title="${a.title}" titLen='10' target="_blank"><h2>[@text_cut s=a.title len=titLen append=append/]</h2></a> <p>[@text_cut s=a.description len=descLen append=append/]</p> </li> </div> [#else] <ul> <li><span><a href="${a.ctgUrl}" target="_blank">[${a.ctgName}]</a></span><a href="${a.url}" title="${a.title}" target="_blank">[@text_cut s=a.title len='16' append=append/]</a><p style="display:block;float:right;margin-right:2px">${a.date?string(dateFormat)}</p></li> [/#if] [/#list] [/@cms_content_list] </ul> </div> |
||
---|---|---|---|