关键词:一级二级所有栏目调用频道主页<&quot&gtwidthphpcms频道首页模板index.html,可以看到:代码:[复制到剪贴板]<!-自定义栏刚刚开始->;<tablewidth="100%"cellspacing="0"cellpadding="0&;quo
关键字描述:栏目一级二级全部调用频道主页<">width开启phpcms频道首页模板index.html
你能见到:
CODE:[Copytoclipboard]<!--自定栏目刚开始-->
<tablewidth="100%"cellspacing="0"cellpadding="0">
{loop$childcats$i$cat}
{if$i%2==0}<tr>{/if}
<tdvalign="top"style="padding:05px;">
<tablewidth="100%"cellspacing="0"cellpadding="0">
<tr>
<tdclass="titlebar"width="100">{$cat[catname]}</td>
<tdwidth="10"height="25"><imgsrc="{$skindir}/images/tit3_r.jpg"></td>
<tdwidth="225"align="right"class="bg_titlebar"><ahref="{$cat[caturl]}"class="more">大量</a> </td>
<tdwidth="36"><imgsrc="{$skindir}/images/tit2_r.jpg"></td>
</tr>
</table>
{$articlelist(0,$channelid,$cat[catid],1,0,0,10,30,0,0,0,$cat[ordertype],2,1,0,0,$cat[target],1)}
</td>
{if$i%2==1}</tr>{/if}
{/loop}
</table>
<!--自定栏目完毕-->把他换为
CODE:[Copytoclipboard]<!--自定栏目刚开始-->
<tablewidth="100%"cellspacing="0"cellpadding="0">
{loop$childcats$i$cat}
{if$i%2==0}<tr>{/if}
<tdvalign="top"style="padding:05px;">
<tablewidth="100%"cellspacing="0"cellpadding="0">
<tr>
<tdclass="titlebar"width="100">{$cat[catname]}</td>
<tdwidth="10"height="25"><imgsrc="{$skindir}/images/tit3_r.jpg"></td>
<tdwidth="225"align="right"class="bg_titlebar"><ahref="{$cat[caturl]}"class="more">大量</a> </td>
<tdwidth="36"><imgsrc="{$skindir}/images/tit2_r.jpg"></td>
</tr>
</table>
{loopget_childcat($channelid,$cat[catid])$childid}
<ahref="{$childid[caturl]}">{$childid[catname]}</a>
{$articlelist(0,$channelid,$childid[catid],1,0,0,10,36,0,0,0,$childcat[itemordertype],2,0,0,0,1,1)}
{/loop}
</td>
{if$i%2==1}</tr>{/if}
{/loop}
</table>
<!--自定栏目完毕-->实际如何做的美见解大伙儿充分发挥了~~
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)