latest
  • User Guide
  • Developer Guide
  • Cookbooks
  • Best Practices
  • Reference
    • Modules
    • Actions
    • Controllers
    • 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
    • Tags
    • Global template variables
    • Models
    • Validators
    • Notifications
    • Installation requirements
    • Configuration
    • Command-line
    • 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 cd59134d.

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

Free document hosting provided by Read the Docs.