联系官方销售客服
1835022288
028-61286886
我的代码是判断有没有子栏目,有的话先获取它的id之后再通过id获取子栏目的内容,没有就获取本栏目的内容。可是这样分页获取的好像是最外面的list,永远只有一条数据。该怎么修改呢?
{list action=category module=share id=$catid }
{if $t.child}
<ul class="content right_list" id="content">
{list action=module module=news catid=$t.id page=1 pagesize=10 order=updatetime return=t2}
<li style="display: block;">
<a href="{$t2.url}">
<img src="{HOME_THEME_PATH}/img/list_02.png" alt="">
<p>{$t2.title}</p>
<span>{dr_date($t2._updatetime, 'Y-m-d')}</span>
</a>
</li>
{/list}
<div id="page_navigation">
{$total}
</div>
</ul>
{else}
<ul class="content right_list" id="content">
{list action=module module=news catid=$catid page=1 pagesize=10 order=updatetime return=t3}
<li style="display: block;">
<a href="{$t3.url}">
<img src="{HOME_THEME_PATH}/img/list_02.png" alt="">
<p>{$t3.title}</p>
<span>{dr_date($t3._updatetime, 'Y-m-d')}</span>
</a>
</li>
{/list}
<div id="page_navigation">
{$total}
</div>
</ul>
{/if}
分页获取不了。这个总数永远是1.希望有人告诉我怎么解决谢谢