我用的还是SS5.0的版本,我希望将资讯里头条(带提要文字的那条)增加为3(N)条,我找了好半天,没有弄出来,请哪位高手帮忙啊?多谢了,是从下面改吧?我外行,直接帮我改好了贴过来吧- <div class="mainarea">
- <!--headline是否为头条资讯显示的条数呢?-->
- <!--{block name="spacenews" parameter="grade/5/showattach/1/order/i.dateline DESC/limit/0,1/cachetime/40000/showdetail/1/subjectlen/34/messagelen/280/messagedot/1/cachename/headline/tpl/data"}-->
- <!--{if empty($_SBLOCK[headline])}-->
- <div id="headline" class="cleanblock">
- <strong>最新头条资讯</strong>
- <p>该区域显示的资讯需要满足的条件为:<br /><u>资讯的审核等级为5</u></p>
- </div>
- <!--{else}-->
- <div id="headline" class="cleanblock">
- <!--{loop $_SBLOCK[headline] $value}-->
- <!--{if !empty($value[a_thumbpath])}--><a href="$value[url]"><img src="$value[a_thumbpath]" alt="" /></a><!--{/if}-->
- <a href="$value[url]"><strong>$value[subject]</strong>
- <p>$value[message]</p></a>
- <!--{/loop}-->
- </div>
- <!--{/if}-->
- <!-- 1周回复热点 -->
- <!--{block name="spaceblog" parameter="dateline/604800/notype/1/order/i.replynum DESC/subjectlen/34/subjectdot/1/limit/0,15/cachetime/13600/showspacename/1/cachename/newinfos/tpl/data"}-->
- <div id="focus">
- <ul class="msgtitlelist">
- <!--{loop $_SBLOCK[newinfos] $value}-->
- <li><cite>#date("m-d", $value["dateline"])# </cite>[<a href="#action/$value[type]#">{$lang[$value[type]]}</a>] <a href="$value[url]">$value[subject]</a></li>
- <!--{/loop}-->
- </ul>
- </div>
- </div>
- </div>
复制代码 |