phpcms v9首页推荐文章:怎样让它显示5条:顶一下四。
像这样:{pc:contentaction="position"posid="2"order="listorderDESC"num="2"}{loop$data$r}<d...
像这样:{pc:content action="position" posid="2" order="listorder DESC" num="2"}
{loop $data $r}
<div class="topNews">
<strong><a href="{$r[url]}" target="_blank">{if !empty($r[titlebyname])} {$r[titlebyname]}</a> {else}{$r[title]}</a>{/if}</strong>
<p>
<a href="{$r[url]}" target="_blank">{if !empty($r[titlebyname])} {$r[titlebyname]}</a> {else}{$r[title]}</a>{/if} |
<a href="{$r[url]}" target="_blank">{if !empty($r[titlebyname])} {$r[titlebyname]}</a> {else}{$r[title]}</a>{/if}</p>
<a href="{$r[url]}" target="_blank">{if !empty($r[titlebyname])} {$r[titlebyname]}</a> {else}{$r[title]}</a>{/if}|
<a href="{$r[url]}" target="_blank">{if !empty($r[titlebyname])} {$r[titlebyname]}</a> {else}{$r[title]}</a>{/if}</p>
</div>
{/loop}
{/pc}
完美解决 展开
{loop $data $r}
<div class="topNews">
<strong><a href="{$r[url]}" target="_blank">{if !empty($r[titlebyname])} {$r[titlebyname]}</a> {else}{$r[title]}</a>{/if}</strong>
<p>
<a href="{$r[url]}" target="_blank">{if !empty($r[titlebyname])} {$r[titlebyname]}</a> {else}{$r[title]}</a>{/if} |
<a href="{$r[url]}" target="_blank">{if !empty($r[titlebyname])} {$r[titlebyname]}</a> {else}{$r[title]}</a>{/if}</p>
<a href="{$r[url]}" target="_blank">{if !empty($r[titlebyname])} {$r[titlebyname]}</a> {else}{$r[title]}</a>{/if}|
<a href="{$r[url]}" target="_blank">{if !empty($r[titlebyname])} {$r[titlebyname]}</a> {else}{$r[title]}</a>{/if}</p>
</div>
{/loop}
{/pc}
完美解决 展开
2个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询