phpcms建站时,当一个栏目下包含许多子栏目时,大栏目页面导航出现不换行现象的解决方法:
找到 templates\default\phpcms\tag_catlist.html 文件 。
然后找到:{elseif $showtype==2}
删除下面的所有文件,然后添加
-
-
- {loop get_childcat($channelid,$catid) $cat}
- {$cat[catname]}
- {if $cat[child]==1 && $child}{loop get_childcat($channelid,$cat[catid]) $childid}{$childid[catname]}{/loop}
- {/if}
- {/loop}
-
-
- {else}
-
-
- {$cattree($channelid,$catid,$open)}
- {/if}
重新的更新频道即可。
动态不生成的直接刷新即可看到效果。
来源:互联网
免责声明:如果侵犯了您的权益,请联系站长(1277306191@qq.com),我们会及时删除侵权内容,谢谢合作! |
|