0.x
  • User Guide
  • Developer Guide
  • Cookbooks
  • Best Practices
  • Reference
    • Modules
    • Actions
    • Controllers
    • All dispatch rules
    • Filters
      • Binaries
      • Booleans
      • Dates
      • Encryption
      • Character escaping
      • Forms
      • HTML
      • Lists
      • Mailing list
      • Menu
        • menu_flat
        • menu_is_visible
        • menu_rsc
        • menu_subtree
        • menu_trail
      • Miscellaneous
      • Numbers
      • Regular Expressions
      • Resource lists
      • Resources
      • Strings
      • Survey
      • Translation
      • Tuples
      • Variables
    • Models
    • Services
    • Builtin Tags
    • Custom Tags
    • Validators
    • Directory structure
    • Icons
    • Notifications
    • Installation requirements
    • Global configuration
    • Site configuration
    • The Status site
    • Command-line
    • Transport
    • Troubleshooting
    • EDoc reference
  • Glossary
Zotonic
  • Docs »
  • Reference »
  • Filters »
  • Menu »
  • menu_flat
  • Edit on GitHub

menu_flat¶

  • Module: mod_menu

Flattens the rsc menu structure for use in a template loop.

Example:

{% for item in m.rsc[id].menu|menu_flat %}
...
{% endif %}

See also

menu_subtree, menu_trail

Next Previous

© Copyright 2009–2017, The Zotonic Project (zotonic.com). Revision 8880bacb.

Built with Sphinx using a theme provided by Read the Docs.
Read the Docs v: 0.x
Versions
latest
stable
0.x
Downloads
pdf
html
epub
On Read the Docs
Project Home
Builds

Free document hosting provided by Read the Docs.