主题 : 关于置顶,有个问题? |
级别: 举人
![]() |
1# 发表于:2019-04-02 19:04:30 IP:117.0.*.*
|
||||
---|---|---|---|---|---|
级别: 论坛管理员
![]() |
3# 发表于:2019-04-03 09:05:29 IP:117.115.*.*
但是我们可以对新加的内容显示一个new的小图标 您可以用这个功能来实现下
|
||
---|---|---|---|
级别: 论坛管理员
![]() |
7# 发表于:2019-04-03 10:20:56 IP:117.125.*.*
[@cms_content_page count='10' orderBy='4' channelId=channel.id channelOption='2' dateFormat='yyyy-MM-dd']
[#list tag_pagination.list as a] <div class="hdNews hasPic"> [#if a.typeImg??] <a href="${a.url}" target="_blank" class="pic" style="border:1px solid #ccc;"> <img src="${a.typeImg!site.typeImg}" /> </a> [/#if] <a href="${a.url}" title="${a.title}" target="_blank"> <h2>[@text_cut s=a.title len=22 /][#if a.new]<img src="${base}/${site.newPic!}"/>[/#if]</h2> </a> <p> [@text_cut s=a.desc len=60 append='...'/] <span style="color:#999">(${a.date?string(dateFormat)})</span> </p> </div> [/#list] |
||
---|---|---|---|
级别: 论坛管理员
![]() |
8# 发表于:2019-04-03 10:21:56 IP:117.125.*.*
其中<h2>[@text_cut s=a.title len=22 /][#if a.new]<img src="${base}/${site.newPic!}"/>[/#if]</h2> 就是哪个new的标签
|
||
---|---|---|---|
级别: 举人
![]() |
9# 发表于:2019-04-03 10:29:13 IP:117.0.*.*
回复第8楼这是对新加的内容,可以获取new标签;但是无法对置顶内容,获取置顶标签是嘛?
|
||
---|---|---|---|