section_banner
1 sites
No security coverage
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:
- Navigate to Configuration → Content authoring → Section Banner (/admin/config/content/section-banner).
- Select the language to configure.
- 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
- 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