Navigation Configuration Guide
Overview
This guide covers how to configure different navigation layouts, sidebar modes, and top navigation options in the application.Sidebar Configuration
Basic Sidebar States
The sidebar supports multiple states that can be configured through the sidebar utilities:1. Rail Mode (Collapsed Sidebar)
Rail mode shows a collapsed sidebar with only icons visible. Configuration in Component:2. Full Sidebar Mode
Full sidebar shows expanded menu with text labels and icons.3. Persistent vs. Overlay Sidebar
Desktop (Persistent):- Sidebar remains visible alongside content
- Content area adjusts width accordingly
- Smooth transitions between rail and full modes
- Sidebar appears as overlay over content
- Backdrop dims the main content
- Automatically collapses on navigation
Top Navigation Configuration
1. Enable/Disable Top Navigation
Method 1: Controller Level2. Top Navigation Menu Levels
Level 0: Main Groups3. Conditional Top Navigation
Show different top menu based on section:Layout Variants
1. Sidebar Layout (Default)
2. Full-width Layout (No Sidebar)
3. Minimal Layout (No Navigation)
Menu Configuration
1. YAML Menu Files
Main Configuration (config/core/app.php):
.env):
2. Multiple Menu Sources
Load Different Menu Sets:3. Dynamic Menu Configuration
Role-Based Menu Loading:Responsive Behavior Configuration
1. Breakpoint Configuration
2. Mobile-Specific Configuration
Advanced Configuration Examples
1. Context-Aware Navigation
2. User Preference Storage
3. Route-Based Configuration
Configuration Summary
| Configuration | Options | Default | Description |
|---|---|---|---|
| Sidebar State | expanded, collapsed | expanded | Sidebar display mode |
| Top Menu Level | 0, 1 | 1 | Menu hierarchy level |
| Layout Variant | sidebar, full, minimal | sidebar | Overall layout structure |
| Menu Sources | YAML file paths | dms/navnext | Menu data sources |
| Responsive Mode | persistent, overlay | Auto | Mobile behavior |
Best Practices
- Use consistent naming for navigation states across components
- Store user preferences in localStorage or database
- Configure navigation contextually based on user roles and current section
- Test responsive behavior across different screen sizes
- Provide smooth transitions between navigation states
- Consider accessibility when hiding/showing navigation elements
- Document custom configurations for team members
