首页 > 建站‧营销

pbootcms隐藏指定scode的菜单


隐藏指定 scode 的菜单

 {pboot:if([nav:scode]==2||[nav:scode]==4||[nav:scode]==6)} style="display: none;"{/pboot:if} //隐藏scode为 2,4,6 的菜单,例:

{pboot:nav}
<li {pboot:if([nav:scode]==2||[nav:scode]==4||[nav:scode]==6)} style="display:none;"{/pboot:if}>
<a href="[nav:link]">[nav:name]</a>
</li>
{/pboot:nav}

本文链接:https://zhanque.net/cms/4690.html