修改建议:
分类查看页只能查看最新更新的,不好。用户如果想索引全部文章,根本无法找到。
<?exit?>
{template news_header}
<div class="content">
<div class="sidebar">
<div class="catepic">
<!--{if $thecat['thumb']}-->
<img src="{A_URL}/$thecat[thumb]" alt="" />
<!--{/if}-->
<!--{if $thecat['note']}-->
<p>$thecat[note]</p>
<!--{/if}-->
</div>
<!--{block name="category" parameter="upid/$thecat[catid]/ischannel/2/order/c.displayorder/limit/0,100/cachetime/14400/tpl/div_category_name_list/cachename/subarr"}--><!--子分类-->
<!--{block name="category" parameter="upid/$thecat[catid]/ischannel/1/showattach/1/order/c.displayorder/limit/0,100/cachetime/16400/tpl/div_category_channel"}--><!--专题列表-->
<!--{block name="spacenews" parameter="catid/$thecat[catid]/dateline/2592000/subjectlen/25/order/i.viewnum DESC/limit/0,15/cachetime/7280/tpl/div_item_subject_hot_list"}--><!--热点资讯-->
<!--{if !empty($thecat['bbsmodel'])}-->
<div id="hotthreads">
<h3>{lang bbs}热点</h3>
<ul>
<!--{block name="bbsthread" parameter="$thecat[blockparameter]/limit/0,15/cachetime/12200/order/views DESC/subjectlen/25/tpl/thread_subject_list"}--><!--论坛主题列表-->
</ul>
</div>
<!--{/if}-->
</div>
<div class="mainarea">
<div class="blocktitle">
<!-- 您的位置开始 -->
<div id="nav"><a href="{S_URL}" target="_self">首页</a>
<!--{loop $guidearr $value}-->
>> <a href="$value[url]" target="_self">$value[name]</a>
<!--{/loop}-->
</div>
<!-- 您的位置结束 -->
<h2>{lang news}</h2>
</div>
<!-- 资讯最新列表开始 -->
<!--根分类最新日志列表-->
<!--{if $_SGET['page']<2 || empty($_SGET['mode'])}-->
<!--{block name="spacenews" parameter="perpage/40/catid/$thecat[subcatid]/subjectlen/38/order/i.dateline DESC/cachename/newlist/tpl/data"}-->
<!--最新列表--><!--{if $_SBLOCK['newlist']}-->
<div class="articlelist">
<h3>$thecat[name]</h3>
</div>
<div class="list2col">
<!--{loop $_SBLOCK['newlist'] $value}-->
<li><a href="$value[url]">$value[subject]</a>(#date("m-d", $value["dateline"])# )</li>
<!--{/loop}-->
</div>
<div class="pages">
<!--{if $_SBLOCK[newlist_multipage]}-->
$_SBLOCK[newlist_multipage]
<!--{else}-->
<table summary="" class="xspace-page"><tr><td class="xspace-totlerecord">当前只有一页</td></tr></table>
<!--{/if}-->
</div>
<!--{/if}-->
<!--{/if}-->
<!--{if !empty($thecat['bbsmodel'])}-->
<div class="list2col">
<a href="#action/category/catid/$thecat[catid]/mode/bbs#" class="more">MORE</a>
<h3><a href="#action/category/catid/$thecat[catid]/mode/bbs#">{lang bbs}主题</a></h3>
<ul>
<!--{block name="bbsthread" parameter="$thecat[blockparameter]/limit/0,40/cachetime/960/subjectlen/40/tpl/thread_subject_list"}--><!--论坛主题列表-->
</ul>
</div>
<!--{/if}-->
<!-- 资讯最新二级分类列表开始 -->
<!--{if $_SGET['page']<2}-->
<!--{loop $_SBLOCK['subarr'] $ckey $cat}-->
<!--{eval $ctime=1800+30*$ckey;}-->
<!--{block name="spacenews" parameter="catid/$cat[subcatid]/order/i.dateline DESC/limit/0,10/cachetime/$ctime/cachename/subnewlist/tpl/data"}-->
<!--{if $_SBLOCK['subnewlist']}-->
<div class="miniblock">
<a href="#action/category/catid/$cat[catid]#" class="more">MORE</a>
<h3><a href="#action/category/catid/$cat[catid]#">$cat[name]</a></h3>
<ul class="msgtitlelist">
<!--{loop $_SBLOCK['subnewlist'] $value}-->
<li><cite> #date("m-d", $value["dateline"])#</cite><a href="$value[url]">$value[subject]</a></li>
<!--{/loop}-->
</ul>
</div>
<!--{/if}-->
<!--{/loop}-->
<!--{/if}-->
<!-- 资讯最新二级分类列表结束 -->
<!-- 广告开始 -->
<div class="adgroup">
<!--此为广告请自行添加-->
<!--此为广告请自行添加-->
</div>
<!-- 广告结束 -->
</div><div class="hackbox"></div>
</div>
{template news_footer}
这是我修改的的news_category.html.php |