oliveyrc / orbit_banner
There is no license information available for the latest version (v1.0.0) of this package.
Provides a banner block, with images, video, title, text and link.
v1.0.0
2026-07-25 20:27 UTC
README
Orbit Banner is a custom Drupal 11 module that adds banner functionality to the Basic page content type (page).
On install, the module provides:
- Banner media types for images and videos.
- Banner fields on Basic page.
- Form display setup for those fields.
- A
Tabsfield group with aBannertab on the Basic page edit form.
Features
Media types
banner_image(source: image)banner_video(source: video file)
Basic page fields
field_orbit_banner_help(markup help text)field_orbit_banner_title(string)field_orbit_banner_image(media reference tobanner_image)field_orbit_banner_video(media reference tobanner_video)field_orbit_banner_size(list:small,medium,large)field_orbit_banner_colour(color field)
Form display behavior
During module install, orbit_banner_install() updates node.page.default form display to:
- Place all banner fields in
contentregion with expected weights. - Create
group_tabs(tabs, vertical) as a top-level field group. - Create
group_banner(tab) undergroup_tabs. - Assign all banner fields to
group_banner.
Requirements
- Drupal
^11 - Contrib modules declared in module info:
color_fieldmarkupmedia_library_editfield_group
Installation
- Ensure required dependencies are available in the site.
- Enable the module:
ddev drush en orbit_banner -y
- Rebuild caches:
ddev drush cr
Verify
- Go to Structure -> Content types -> Basic page -> Manage form display.
- Confirm there is a Tabs group containing a Banner tab.
- Confirm the banner fields are inside the Banner tab.
Important note for existing installs
The form-display field-group setup runs in the module install hook. If the module is already installed, reinstalling the module is required for install-hook logic to run again.
Maintainer
- Ricahrd Olivey (oliveyrc)
- Source: https://github.com/oliveyrc/orbit_banner
- Issues: https://github.com/oliveyrc/orbit_banner/issues