如何让discuz X3 列表页只显示当前栏目的文章,不显示子栏目和其他栏目文章
默认的代码如下,如何修改?<divclass="bm_cxld"><!--{loop$list['list']$value}--><!--{eval$highlight=...
默认的代码如下,如何修改?
<div class="bm_c xld">
<!--{loop $list['list'] $value}-->
<!--{eval $highlight = article_title_style($value);}-->
<!--{eval $article_url = fetch_article_url($value);}-->
<dl class="bbda cl">
<dt class="xs2"><a href="$article_url" target="_blank" class="xi2" $highlight>$value[title]</a> <!--{if $value[status] == 1}-->({lang moderate_need})<!--{/if}--></dt>
<dd class="xs2 cl">
<!--{if $value[pic]}--><div class="atc"><a href="$article_url" target="_blank"><img src="$value[pic]" alt="$value[title]" class="tn" /></a></div><!--{/if}-->
$value[summary]
</dd>
<dd>
<!--{if $value[catname] && $cat[subs]}-->{lang category}: <label><a href="{$portalcategory[$value['catid']]['caturl']}" class="xi2">$value[catname]</a></label> <!--{/if}-->
<span class="xg1"> $value[dateline]</span>
<!--{if $_G['group']['allowmanagearticle'] || ($_G['group']['allowpostarticle'] && $value['uid'] == $_G['uid'] && (empty($_G['group']['allowpostarticlemod']) || $_G['group']['allowpostarticlemod'] && $value['status'] == 1)) || $categoryperm[$value['catid']]['allowmanage']}-->
<span class="xg1">
<span class="pipe">|</span>
<label><a href="portal.php?mod=portalcp&ac=article&op=edit&aid=$value[aid]">{lang edit}</a></label>
<span class="pipe">|</span>
<label><a href="portal.php?mod=portalcp&ac=article&op=delete&aid=$value[aid]" id="article_delete_$value[aid]" onclick="showWindow(this.id, this.href, 'get', 0);">{lang delete}</a></label>
</span>
<!--{/if}-->
</dd>
</dl>
<!--{/loop}-->
</div> 展开
<div class="bm_c xld">
<!--{loop $list['list'] $value}-->
<!--{eval $highlight = article_title_style($value);}-->
<!--{eval $article_url = fetch_article_url($value);}-->
<dl class="bbda cl">
<dt class="xs2"><a href="$article_url" target="_blank" class="xi2" $highlight>$value[title]</a> <!--{if $value[status] == 1}-->({lang moderate_need})<!--{/if}--></dt>
<dd class="xs2 cl">
<!--{if $value[pic]}--><div class="atc"><a href="$article_url" target="_blank"><img src="$value[pic]" alt="$value[title]" class="tn" /></a></div><!--{/if}-->
$value[summary]
</dd>
<dd>
<!--{if $value[catname] && $cat[subs]}-->{lang category}: <label><a href="{$portalcategory[$value['catid']]['caturl']}" class="xi2">$value[catname]</a></label> <!--{/if}-->
<span class="xg1"> $value[dateline]</span>
<!--{if $_G['group']['allowmanagearticle'] || ($_G['group']['allowpostarticle'] && $value['uid'] == $_G['uid'] && (empty($_G['group']['allowpostarticlemod']) || $_G['group']['allowpostarticlemod'] && $value['status'] == 1)) || $categoryperm[$value['catid']]['allowmanage']}-->
<span class="xg1">
<span class="pipe">|</span>
<label><a href="portal.php?mod=portalcp&ac=article&op=edit&aid=$value[aid]">{lang edit}</a></label>
<span class="pipe">|</span>
<label><a href="portal.php?mod=portalcp&ac=article&op=delete&aid=$value[aid]" id="article_delete_$value[aid]" onclick="showWindow(this.id, this.href, 'get', 0);">{lang delete}</a></label>
</span>
<!--{/if}-->
</dd>
</dl>
<!--{/loop}-->
</div> 展开
2个回答
2013-08-15
展开全部
要么自己单独做一个,要么修改默认的,建议修改默认的。
你给的不全,删掉class为“sd pph”.编辑class“mn”的宽度
你给的不全,删掉class为“sd pph”.编辑class“mn”的宽度
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
2013-08-25
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询