dedecms织梦特定条件下,隐藏特定栏目的方法,通过css实现_html/css_WEB-ITnose

WBOY
Release: 2016-06-21 09:06:23
Original
994 people have browsed it

  定义css样式.hidden{display:nidden}因为栏目id为6的栏目是关于我们等非核心栏目,不想在导航上显示,但在后台又没有设置隐藏,设置隐藏了前台的其它栏目页就没法调用他了.所以,在导航条上要处理一下{dede:channel type='top' row='10'      currentstyle="<li class='active'><a href='~typelink~' ~rel~>~typename~</a></li>"}       <li  class="[field:id runphp='yes']  if(@me=='6') @me = 'hidden'; else @me = '';[/field:id]" ><a href='[field:typeurl/]'>[field:typename/]</a></li>       {/dede:channel}
Copy after login

source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!