Menus & Navigation
TractStack provides flexible menu creation and navigation management through the Content section of StoryKeep. Menus help organize your site structure and guide visitors through your content.
Understanding TractStack Menus
Section titled “Understanding TractStack Menus”Menu System Overview
Section titled “Menu System Overview”Menus in TractStack are custom content types that can be created and managed independently of page structure. They consist of menu links with configurable properties and can be assigned to different locations in your site.
Menu Components
Section titled “Menu Components”Menu Links: Individual navigation items with:
- Name: Display text for the link
- Description: Additional context or explanation
- Featured: Highlighting for important menu items
- ActionLisp: Navigation behavior definition
Menu Structure:
- ID: Unique identifier for the menu
- Title: Menu name for management purposes
- Theme: Visual styling for the menu
- Options Payload: Array of menu links
Creating Menus
Section titled “Creating Menus”Basic Menu Creation
Section titled “Basic Menu Creation”-
Access menu creation: Navigate to Content → Manage Content → “Create New” → “Menu”
-
Menu configuration:
- Title: Descriptive name for menu management
- Theme: Visual styling theme for the menu
- Menu Links: Add individual navigation items
-
Link configuration: For each menu item:
- Name: Text that appears in navigation
- Description: Hover text or additional context
- Featured: Mark important items for special styling
- ActionLisp: Define where the link navigates
ActionLisp Navigation
Section titled “ActionLisp Navigation”ActionLisp format defines navigation behavior:
Story fragment navigation:
(goto (storyfragment "slug"))
Context page navigation:
(goto (context "slug"))
External URL:
(goto (url "https://example.com"))
Menu Placement and Integration
Section titled “Menu Placement and Integration”Header Navigation
Section titled “Header Navigation”Menus can be integrated into the site header for primary navigation:
- Main navigation: Primary site menu
- Utility navigation: Secondary links (login, contact, etc.)
- Mobile navigation: Responsive menu for mobile devices
Footer Navigation
Section titled “Footer Navigation”Footer menus provide:
- Site map: Complete navigation overview
- Legal links: Privacy, terms, contact information
- Social links: Social media and external connections
Contextual Menus
Section titled “Contextual Menus”In-content navigation:
- Section menus: Navigation within content areas
- Related links: Contextual navigation suggestions
- Call-to-action menus: Action-oriented navigation
Menu Themes and Styling
Section titled “Menu Themes and Styling”Theme Configuration
Section titled “Theme Configuration”Menu themes control visual presentation:
- Color schemes: Match site branding
- Typography: Font and text styling
- Layout: Horizontal, vertical, or custom arrangements
- Interactive states: Hover, active, and focus styling
Responsive Behavior
Section titled “Responsive Behavior”Menus automatically adapt for different screen sizes:
- Desktop: Full menu display
- Tablet: Condensed navigation
- Mobile: Hamburger menu or drawer navigation
Advanced Menu Features
Section titled “Advanced Menu Features”Featured Items
Section titled “Featured Items”Mark menu items as featured for:
- Visual emphasis: Special styling or highlighting
- Priority placement: Prominent positioning in navigation
- Call-to-action treatment: Button-style presentation
Dynamic Menu Content
Section titled “Dynamic Menu Content”Menus can integrate with:
- Content management: Automatically include new pages
- User context: Show different items based on authentication
- Belief system: Adaptive navigation based on visitor preferences
Menu Analytics
Section titled “Menu Analytics”Navigation Tracking
Section titled “Navigation Tracking”TractStack automatically tracks menu usage:
- Click events: Which menu items are used most
- Navigation patterns: How visitors move through your site
- Drop-off points: Where visitors leave navigation flows
Performance Insights
Section titled “Performance Insights”Menu effectiveness metrics:
- Usage frequency: Most and least used menu items
- Conversion impact: How navigation affects site goals
- User journey analysis: Navigation’s role in visitor paths
Multi-Level Navigation
Section titled “Multi-Level Navigation”Hierarchical Menus
Section titled “Hierarchical Menus”While TractStack menus are primarily flat structures, you can create hierarchical navigation through:
- Menu grouping: Organize related items together
- Nested ActionLisp: Complex navigation behaviors
- Contextual menus: Different menus for different sections
Breadcrumb Navigation
Section titled “Breadcrumb Navigation”Implement breadcrumb trails using:
- Page hierarchy: Logical content organization
- Menu integration: Breadcrumbs based on menu structure
- User journey: Show navigation path taken
Menu Management
Section titled “Menu Management”Content Organization
Section titled “Content Organization”Menu planning:
- Information architecture: Logical site organization
- User needs: Navigation that matches visitor goals
- Content strategy: Menus that support content discovery
Menu maintenance:
- Regular review: Update menus when content changes
- Link validation: Ensure all menu links work correctly
- Performance monitoring: Track menu effectiveness
Team Workflow
Section titled “Team Workflow”Role-based menu management:
- Editors: Can create and modify menus
- Admins: Full menu management capabilities
- Content strategy: Collaborative menu planning
Integration with Content
Section titled “Integration with Content”Story Fragment Integration
Section titled “Story Fragment Integration”Menus work seamlessly with story fragments:
- Page navigation: Link to any story fragment
- Context integration: Include context pages in menus
- Dynamic updates: Menus reflect current content structure
Belief-Driven Navigation
Section titled “Belief-Driven Navigation”Adaptive menus:
- Personalized navigation: Show relevant items based on visitor beliefs
- Progressive disclosure: Reveal navigation options as visitors engage
- Custom journeys: Navigation paths based on declared preferences
Technical Implementation
Section titled “Technical Implementation”Menu Storage
Section titled “Menu Storage”Menus are stored as content nodes with:
- Database integration: Persistent menu configuration
- Cache optimization: Fast menu loading
- Update synchronization: Immediate menu changes
Template Integration
Section titled “Template Integration”Menus integrate with Astro templates:
- Component rendering: Menu components in page layouts
- Theme application: Consistent styling across site
- Responsive rendering: Device-appropriate menu display
Effective menu design creates intuitive navigation that helps visitors find content and achieve their goals. Regular analysis of menu performance helps optimize the user experience.