navigation Navigation tab usage

Label description

The navigation tag is dedicated to navigation, and the to function is also specialized in navigation. It is the same as the jmp function, except that to only needs to pass the navigation value array into it.

Call case

  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>
Language: Chinese ∷  English     FriendlyLinks: HDSysCms huodie
HDSysCms ©️ 2021 HDSysCmsHelp center Sitemap HdSysCms Tage
address:guangxi   telephone:077x-10000