navigation 导航标签使用

标签说明

navigation标签是导航专用,to函数也是导航专业跟jmp功能一样,只是to只需要专递导航值数组进去即可

调用案例

  1. <ul class="nav navbar-nav">
  2. {navigation navigation as $vo } {if isset($vo['data'])}
  3. <li class="dropdown">
  4. <a href="{@to($vo)}">
  5. {$vo.ename}
  6. </a>
  7. <a href="{@to($vo)}" id="app_menudown" class="dropdown-toggle" data-toggle="dropdown"
  8. role="button" aria-expanded="false">
  9. <span class="glyphicon glyphicon-menu-down btn-xs">
  10. </span>
  11. </a>
  12. <ul class="dropdown-menu nav_small" role="menu">
  13. {foreach $vo.data as $svo }
  14. <li>
  15. <a href="{@to($svo)}">
  16. {$svo.ename}
  17. </a>
  18. </li>
  19. {/foreach}
  20. </ul>
  21. </li>
  22. {else}
  23. <li>
  24. <a href="{@to($vo)}">
  25. {$vo.ename}
  26. </a>
  27. </li>
  28. {/if} {/navigation}
  29. </ul>