Home  >  Article  >  Backend Development  >  phpcmsV9 如若实现导航切换

phpcmsV9 如若实现导航切换

WBOY
WBOYOriginal
2016-06-13 13:17:47750browse

phpcmsV9 如果实现导航切换
其实v9和08是一样的 08只不过是通过body=onlod($catid)方法加载
而v9我们可以通过判断导航id还当前打开页面的栏目id是否相等
代码:
{if($r[catid]==$catid)}加载指定的css样式{/if}
有的可能是二级页面或者更多级次的页面只需加载他是否和父类的id相等就行
{if($r[catid]==$category[cid][catid] $$ $r[catid]==$catid)}加载css样式{/if}

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn