menu
Oro Documentation: Find everything you need to use and develop your OroCommerce, OroCRM, and OroPlatform application
    Result in:
    close
    • Back to Oro Inc
    • Users
      • Solution ArchitectureLearn about the OroCommerce architecture, integration points, and the infrastructure to implement it.
      • Concept GuidesGet contextual references to detailed feature descriptions based on your business use case.
      • Back-OfficeExplore the key features and learn to automate workflows, create reporting and much more.
      • Commerce StorefrontIntroduction to OroCommerce default storefront navigation, interaction, and browsing.
      • IntegrationsExplore OroCommerce's pre-built and custom integration options.
      • GlossaryNavigate OroCommerce terms easily with our comprehensive glossary guide.
      Up for a challenge? Validate your skills and earn the Oro Certificate!
      • Learn More
    • Developers
      • Backend Developer GuideComprehensive documentation on installing, customizing, and maintaining Oro applications efficiently.
      • Frontend Developer GuideLearn to efficiently customize Oro apps appearance both on the Storefront and in the Back-office.
      • Oro Bundles & ComponentsExplore Oro Config Component and core bundle implementation for non-standard customizations.
      • Web Services API GuideIntegrate Oro functionality into third-party systems with REST API guide.
      • Community GuideLearn about the best ways to contribute to Oro applications, and engage with the Oro community.
      Up for a challenge? Validate your skills and earn the Oro Certificate!
      • Learn More
    • Cloud Administrators
      • ArchitectureUncover OroCloud's architecture with illustrative diagrams for deeper understanding.
      • Environment TypesUnderstand OroCommerce environment types for tailored deployment options and configurations.
      • SecurityDiscover OroCloud network diagram and Oro's comprehensive security protocols.
      • MonitoringEnsure service continuity and proactive resource management with OroCloud monitoring tools.
      • OnboardingStreamline your Oro application deployment with our comprehensive onboarding process guide.
      • VPN ConnectionLearn how to connect OroCloud VPN across different operating systems.
      • MaintenanceExplore the tools to manage maintenance tasks within your OroCloud environment.
      • SupportDiscover Oro's support process for Oro authorized partners and Enterprise customers.
      Up for a challenge? Validate your skills and earn the Oro Certificate!
      • Learn More
    • OroCommerce
    • OroHive
    • Documentation >
    • Developers >
    • Backend Developer Guide >
    • Configuration Reference >
    • YAML >
    • Navigation
    • Backend Developer Guide
      • Application Setup and Configuration
        • System Requirements
          • Performance Optimization
        • Development Environment
          • Setup on Ubuntu
          • Setup on macOS
          • Setup on Windows
          • Docker & Symfony Server
          • Web Server Configuration
          • Configuration Parameters
          • Environment Variables
          • Healthcheck and Data Monitoring
          • Setup From Database Dump
          • Oro Devbox VM
        • Demo Environment
          • Docker
          • VM VirtualBox
          • AWS Cloud Platform
          • Google Cloud Platform
          • Azure Cloud Platform
        • Jenkins CI
        • Get the Oro Application Source Code
        • Installation
        • Installation in Sub-Folder
        • Post-Install Activities
          • Content Restrictions
          • Flat Pricing
          • Cookies Configuration
          • Protected Cookies
        • Loading Demo Data
        • Launch
        • Upgrade Source Code
        • Upgrade Application
        • Deploy Changes
        • Reinstall
      • Application Architecture
        • Technology Stack
          • Database
          • File Storage
          • Session Storage
          • Message Queue
          • Search Index
            • Query Builder
            • Best Practices
            • Elasticsearch Configuration and Tuning
            • Fuzzy Search
            • Troubleshooting
        • Application Structure
        • Application Framework
          • Architecture Principles of Oro Applications
        • Application Customization
        • Differences to Common Symfony Applications
        • Custom Oro Application
        • Bundle-less Structure
      • Bundles and Extensions
        • Create a Bundle
        • Install Extension from the Oro Extensions Store
        • Add an Extension to Oro Extensions Store
      • Entities
        • Create Entities
        • Database Structure Migrations
        • Extend Entities
          • Option Enum Set Fields
          • Extended Associations
          • Multi-Target Extended Associations
          • Serialized Fields
          • Validation for Extended Fields
          • Define Custom Form Type for Fields
          • Extending the Extended Field Rendering
        • Configure Entities
          • Define a New Object Configuration Attribute
          • Implementation
          • Add Configuration Options
          • Access Entities Configuration
        • Create Custom Entities
        • Merge Entities
        • CRUD Operations
        • Custom Field Validation
        • Entity Aliases
        • Entity Activities
        • Turn an Entity into an Activity
        • Entity Fallback Values
        • Entity Manager
        • Entity Name Resolver and Providers
        • Entity Class Name Provider
        • Entity Structure Data Provider
        • Events
        • Dictionaries
        • Doctrine Field Types
        • Partial Indexes
        • Profiler of Duplicated Queries
        • Resolving ORM Query Hints
        • Entity Repositories as a Services
        • Transaction watchers for Default DBAL Connection
        • Attributes Configuration
        • Datagrids
          • Pass Request Parameters to the Grid
          • Enable Entity Pagination
        • Customize Datagrids
          • Backend Datagrid
            • Scopes
            • Views List
            • Datasources
              • Array Datasource
              • ORM Datasource
            • Parameter Binding
            • Extensions
              • Action Extension
              • Board Extension
              • Export Extension
              • Field ACL Extension
              • Formatter Extension
              • Grid Views Extension
              • Inline Editing
              • Mass Action Extension
              • Mode Extension
              • Pager Extension
              • Sorter Extension
              • Toolbar Extension
              • Totals Extension
              • Organization Column Extension
            • Events
            • Advanced Grid Configuration
            • Editable Datagrid Cells
            • Selected Fields Providers
            • State Providers
            • References in YAML Configuration
          • Frontend Datagrid
            • Mass Action Configuration
        • Protect Entities Using ACLs
        • Entity Attachments
        • Customize CRUD Pages
        • Fixtures
        • Data Sanitization
      • Entities Data Management
        • Fixtures and Demo Data
        • Reports & Segments
        • Workflows
          • Introduction
          • Configuration Reference
          • Elements
          • Basic Configuration
          • Transition Forms
          • Transition Services
          • Translation Wizard
          • Workflow Events
          • Configuration Example
        • Operations (Actions)
          • Glossary
          • Buttons
          • Action Groups
          • Configuration Reference
          • Actions and Conditions
          • Console Commands
        • Processes
        • Data Audit
      • Security
        • Introduction to Security in Oro Applications
        • ACL Manager
        • Custom Permissions
        • Field ACL
        • Configurable Permissions
        • CSRF Protection
        • Access Rules
        • Access Control
        • Custom listeners
        • Access Levels and Ownership (Example)
        • Global View Entities
        • HTTP Security Response Headers
      • Translation and Localization
        • Content and User Interface Translation
        • Translation Configuration
        • Data Fixtures
        • Schema Migrations
        • Localization
        • Add Translations to Source Code
      • Integrations
        • Oro Integration Bundle
          • Basic Implementation
          • Configuration Reference
          • Additional Serializable Fields
          • Reverse Synchronization
          • Default Owner for Integration Related Entities
          • Additional Capabilities
        • Import and Export
          • Overview
          • Domain Model
          • Gaufrette
          • Fields Configuration
          • Import and Export Entities
          • Events
          • Extend Entities to Support Bulk Import and Export
          • Accelerate Import
          • Postponing Rows
          • Import Custom Format File Via Batch API
        • API-Based Integration
        • Initial Data Loading
        • Notification Alerts
      • Dashboards
      • Navigation
      • Emails
      • Message Queue
        • Message Queue Topics
        • Message Queue Jobs
        • Consumer
          • Resetting Container
        • Security Context
        • Logging, Error Handling and Debugging
          • Writing Logs to ELK Stack
        • Testing
        • RabbitMQ (Enterprise Edition Only)
          • Command Lines
          • RabbitMQ Exchanges
          • Divide Queue to Separate Queues
          • Configure RabbitMQ for Production
          • Re-deliver Message with Limited Attempts
          • Backup and Restore
          • Troubleshooting
        • Supervisord
        • Writing Logs to Stackdriver
        • Filtering Messages in the Message Producer
        • Buffering Messages in the Message Producer
        • Delaying Messages
      • Cron
      • WebSocket Notifications
        • Websocket Recipes
          • Use Maintenance Mode Notifications in Oro Applications
          • Use Content Outdated Notifications in Oro Applications
          • Create a Topic and a Handler for Publishing and Subscribing
          • Publish Messages to Existing Topics
          • Use Authentication and Authorization in WebSocket Connections
        • WebSocket Connection Configuration
      • Scopes
      • Feature Toggle
      • Logging
      • System Configuration
      • Configuration Reference
        • Attributes
          • #[Acl]
          • #[AclAncestor]
          • #[Config]
          • #[ConfigField]
          • #[TitleTemplate]
        • YAML
          • Bundles’ Configuration
          • Access Control Lists
          • Access Control List Categories
          • Assets
          • Dashboards
          • Datagrids
          • Entity Configuration
          • Navigation
          • Placeholders
          • JS Modules
          • Search Index
          • System Configuration
          • Workflows
      • Extending Oro Application
        • Create Payment Method Integrations
        • Create Shipping Method Integrations
        • Add OroCommerce Capabilities to an OroCRM Application
        • Common Checkout Customization Methods
      • Akeneo Integration
      • Automated Tests
        • End-to-End
        • Integration
        • Functional
        • k6 Performance Tests
        • Debug Behat Tests
      • API Developer Guide
        • CLI Commands
        • Configure Stateless Security Firewalls
        • Configure Feature Depended Firewall Authenticators
        • General Configuration
        • Configuration Reference
        • Configuration Extras
        • Configuration Extensions
        • Forms and Validators Configuration
        • Documenting API Resources
        • Actions
        • Request Type
        • Processors
        • Headers
        • Filters
        • Post Processors
        • How to
        • CORS Configuration
        • CORS Configuration for Published OpenAPI Specifications
        • Testing REST API
        • Storefront REST API
        • Storefront Routes
        • Batch API
      • Organization Types
      • Field Sales App
        • Configuration Reference
    Version:
    6.1 (latest)
    • 5.1
    • 6.0
    • 6.1 (latest)
    • 7.0 (dev)
    • Contents
      • items
        • aclResourceId
        • attributes
        • childrenAttributes
        • extras
        • label
        • labelAttributes
        • route
        • translateDomain
        • translateParameters
        • showNonAuthorized
        • uri
      • templates
        • allow_safe_labels
        • ancestorClass
        • currentAsLink
        • currentClass
        • firstClass
        • lastClass
        • rootClass
        • template
      • tree
        • children
        • type

    Navigation 

    Filename

    navigation.yml

    Root Node

    menu_config

    Sections

    • items

      • aclResourceId

      • attributes

      • childrenAttributes

      • extras

      • label

      • labelAttributes

      • route

      • translateDomain

      • translateParameters

      • showNonAuthorized

      • uri

    • templates

      • allow_safe_labels

      • ancestorClass

      • currentAsLink

      • currentClass

      • firstClass

      • lastClass

      • rootClass

      • template

    • tree

      • children

      • type

    items 

    type: map

    Each entry in the map is a new menu item. The keys are used to identify the items. The following options can be used to configure each menu item:

    aclResourceId 

    type: string

    This is the name of an ACL that a user must be granted access for to see the menu item (unless showNonAuthorized is enabled).

    attributes 

    type: map

    To customize the generated HTML, you can configure additional HTML attributes:

    class (type: string)

    A custom HTML class added to the item’s HTML element.

    id (type: string)

    The value of the element’s id attribute.

    childrenAttributes 

    type: map

    To customize the generated HTML, you can configure additional HTML attributes for the elements of a menu item’s children:

    class (type: string)

    A custom HTML class added to the item’s HTML element.

    id (type: string)

    The value of the element’s id attribute.

    extras 

    type: map

    Additional options that control the behavior and look-and-feel of the menu item:

    description (type: string)

    A human-readable description of the item.

    icon (type: string)

    The name of a Font Awesome Icon (OroPlatform uses the old 3.2.1 version of the Font Awesome Icons).

    position (type: integer)

    This option defines the position of the item if there are more than one item on the same level. Items with lower position values will be shown before items with higher values.

    routes (type: sequence)

    A list of route names or route name patterns for which the menu item will be marked as active (the item will be marked as active when one of the listed route names is equal to the current route or if one of the wildcards matches the name of the current route).

    safe_label (type: boolean default: false)

    If set to true and the menu template has the option allow_safe_labels enabled, the menu item’s label will not be escaped, but will be printed as is instead.

    label 

    type: string

    The visible label.

    Tip

    The label will be passed to the translator. This means that you can also use translation keys here.

    labelAttributes 

    type: map

    To customize the generated HTML, you can configure additional HTML attributes for the menu item’s label element:

    class (type: string)

    A custom HTML class added to the item’s HTML element.

    id (type: string)

    The value of the element’s id attribute.

    route 

    type: string

    The name of the route that is used to generate the URL.

    translateDomain 

    type: string

    The translation domain used to translate the menu item label. By default, the messages domain is used if you do not configure the domain explicitly.

    translateParameters 

    type: map

    A map of translation parameters passed to the translator’s trans() method when the label is translated.

    showNonAuthorized 

    type: boolean default: false

    If enabled, the menu item will be show even if the user is not authorized.

    uri 

    type: string

    Instead of linking to a certain route you can also hardcode URLs using the uri option. If you want the menu item to act as a placeholder (for example, to nest menu items), you can use # as a value for this option.

    templates 

    type: map

    For each menu item, a template is used to properly render the needed HTML. When you create your own menu or you want to entirely change the way menu items are rendered, you can define new templates using the following options of the templates key. The options are grouped by keys which are treated as identifiers for the templates.

    allow_safe_labels 

    type: boolean default: false

    If set to false, menu items can define raw HTML labels that will not be escaped in the template when the item’s safe_label extra key is set to true.

    ancestorClass 

    type: string

    An HTML class that will be added to all ancestor menu items of the active menu item.

    currentAsLink 

    type: boolean default: true

    If set to false, the currently active menu item cannot be clicked.

    currentClass 

    type: string

    The name of an HTML class that will be rendered for the active menu item.

    firstClass 

    type: string

    The HTML class that will be rendered for the first menu item of each level.

    lastClass 

    type: string

    The HTML class that will be rendered for the last menu item of each level.

    rootClass 

    type: string

    An HTML class that will be added to the HTML element of the menu’s root item.

    template 

    type: string

    The name of the Twig template to render the menu tree.

    tree 

    type: map

    This option hooks the items into existing menus. The keys are the names of existing menus. There is only one option available:

    children 

    type: map

    The keys of this map are the names of menu items as created using the items option. Specify ~ (null) as the value if the item does not have child items. Otherwise, you can use the children options as the value to create a nested map of child items.

    type 

    type: string

    The type option can be used to choose one of the defined templates to render the menu.

    Caution

    This option can only be used for the root item of a menu.

    Get the latest Oro News

    • OroCommerce
    Compliances
    • Compliances
    • pci-dssfooter1SOCfooter1

    About Us

    • About us
    • Partners
    • Events
    • Careers
    • Bug Bounty

    Certifications

    • PCI DSS
    • SOC2

    Services

    • Oro Services
    • Training

    More Resources

    • Guides & Reports
    • Documentation
    • OroCommerce Blog

    Compliances

    pci-dssfooter1 SOCfooter1

    Follow Oro

    Oro GitHub Oro linkedin Oro twitter Oro Youtube
    © 2024 Oro, Inc. All Rights Reserved
    Terms & Conditions Privacy Policy Data Protection Framework Certification

    Follow Oro

    Oro GitHub Oro linkedin Oro twitter Oro Youtube
    Back to top