发新话题
打印

[求解] 首页怎么实现 仅显示“置顶文章”?

本主题由 washun 于 2008-8-17 19:52 移动

首页怎么实现 仅显示“置顶文章”?

不想要“摘要文章”
不知道怎么改?
首页摘要文章代码:
<!--摘要文章处-->
      <div id="divMain"> <#template:article-multi#>
        <div class="post pagebar"><#ZC_MSG042#>:<#template:pagebar#></div>
      </div>

怎么去掉首页“摘要文章”

TOP

修改b_article-multi.html
=============================================================
<div class="post cate<#article/category/id#> auth<#article/author/id#>">
        <h4 class="post-date"><#article/posttime/longdate#></h4>
        <h2 class="post-title"><a href="<#article/url#>"><#article/title#></a></h2>
        <div class="post-body"><#article/intro#></div>←此处是“文章摘要”可以删除此行!
        <h5 class="post-tags"><#ZC_MSG138#>: <#template:article_tag#></h5>
        <h6 class="post-footer">
                <#ZC_MSG011#>:<#article/author/name#> | <#ZC_MSG012#>:<#article/category/name#> | <#ZC_MSG013#>:<#article/commnums#> | <#ZC_MSG014#>:<#article/trackbacknums#> | <#ZC_MSG130#>:<span id="spn<#article/id#>"></span>
                <script language="JavaScript" type="text/javascript">strBatchView+="spn<#article/id#>=<#article/id#>,"</script>
        </h6>
</div>
=============================================================
如果你想只保留文章标题
=============================================================
<div class="post cate<#article/category/id#> auth<#article/author/id#>">
        <h2 class="post-title"><a href="<#article/url#>"><#article/title#></a></h2>
</div>
=============================================================
如果你想只保留置顶文章
将b_article-istop.html文件中的所有内容覆盖到b_article-multi.html[没经过测试]
=============================================================
<div class="post cate<#article/category/id#> auth<#article/author/id#>">
<h2 class="post-title"><a href="<#article/url#>">[<#ZC_MSG051#>] <#article/title#></a></h2>
</div>
=============================================================

TOP

短短几小时就有2000多IP访问此贴!!!好贴好贴啊!~~~问题提的精,提得妙!!!大家收藏啊!哈哈哈!~~~~~

TOP

发新话题