联系官方销售客服
1835022288
028-61286886
如何在首页栏目的新闻列表里,让推荐位的头条文章不显示。如下代码:
<div class="con" style="display: block;">
<?php $flag=array();?>
{list action=module module=news catid=1 flag=1 num=1}
{if $key==0}<a class="tie chaochu" href="{$t.url}" target="_blank">{$t.title}</a>
{else}
<a class="itms chaochu" href="{$t.url}" target="_blank">{$t.title}<font class="time">{$t.updatetime}</font></a>
{/if}
<?php $flag[]=$t['id'];?>
{/list}
{list action=module module=news NOT_id=$flag catid=1 field=title,url,updatetime num=10}
<a class="itms chaochu" href="{$t.url}" target="_blank">{$t.title}<font class="time">{$t.updatetime}</font></a>
{/list}
</div>
该代码并没有起作用。请大家帮助。谢谢!
<div class="con" style="display: block;">
<?php $flag=array();?>
{list action=module module=news catid=1 flag=1 num=1}
{if $key==0}<a class="tie chaochu" target="_blank" href="{$t.url}" target="_blank">{$t.title}</a>
{else}
<a class="itms chaochu" target="_blank" href="{$t.url}" target="_blank">{$t.title}<font class="time">{$t.updatetime}</font></a>
{/if}
<?php $flag[]=$t['id'];?>
{/list}
{list action=module module=news NOT_id=$flag catid=1 field=title,url,updatetime num=10}
<a class="itms chaochu" target="_blank" href="{$t.url}" target="_blank">{$t.title}<font class="time">{$t.updatetime}</font></a>
{/list}
</div>你是3.2.18必须加句话
谢谢您!好用了。希望能加您微信或者QQ