Config form section_banner
section_banner result

This project is not covered by Drupal’s security advisory policy.

Introduction

Section Banner allows site builders to display dynamic banners on specific pages, content types, Views, or routes without custom code. Each banner can include a title, description, and image. Fully multilingual, token-enabled, and theme-friendly.

Features

  • Display banners based on paths, wildcard patterns, content types, Views (machine name or path), or route names.
  • Multilingual support with automatic fallback if translation is missing.
  • Token support for dynamic banner titles and content (e.g., [node:title], [current-user:name]).
  • Shared banner images across languages.
  • Custom CSS classes for flexible styling.
  • Advanced Twig template suggestions for themers.
  • Performance-friendly caching with proper cache contexts and tags.

Use cases: Different banners per page, section-specific banners, View-based banners, multilingual banner management, reusable configuration-based solution.

Post-Installation

After installing:

  1. Navigate to Configuration → Content authoring → Section Banner (/admin/config/content/section-banner).
  2. Select the language to configure.
  3. Create or edit banners:
    • Enter banner title and body text (supports tokens)
    • Upload a banner image (shared across languages)
    • Define display rules (paths, Views, bundles, routes)
    • Add optional CSS classes
  4. Place the Section Banner Block via Structure → Block layout.

No new content types are created. Clear cache after configuration changes to ensure banners display correctly.

Similar projects

Other banner or hero modules usually rely on block visibility or per-page manual placement. Section Banner differs by providing:

  • Unified rule-based banner management
  • Support for paths, Views, bundles, and routes
  • Multilingual fallback handling
  • Advanced Twig template suggestions
Supporting organizations: 

Project information

  • caution Maintenance fixes only
    Considered feature-complete by its maintainers.
  • Project categories: Content display
  • Ecosystem: Header image
  • Created by dev adnan khan on , updated
  • shield alertThis project is not covered by the security advisory policy.
    Use at your own risk! It may have publicly disclosed vulnerabilities.

Releases