Problem/Motivation
We can add the media header only on contents types, so when I tried to add a media header on the term page I couldn't do it, so I handled to add a media header on the term page
Steps to reproduce
No fields will be added to the taxonomy, if we add the field manually we will need to include the template and block manually
Proposed resolution
- Add a new entity option, which is a Taxonomy term, with a node entity with some enhancement.
// Planed for allowed entity types to have node, taxonomy. // more other entity types if needed. $allowed_entity_types = ['node', 'taxonomy_term']; - Refine the code logic for constructing the block by ensuring a more organized order.
- Implement efficient block cache context and logic management.
- Group bundles for supported entity types to improve code structure and maintainability.
- Import managed Entity Type configs for supported entity types. Only when needed.
As a test Example:
Thevarbase_media_header.settings.ymlschema and configs looks as the following when enabled forpage,varbase_blogcontent types andblog_categoriesterms:varbase_media_header_settings: node: page: page varbase_blog: varbase_blog landing_page_lb: 0 varbase_heroslider_media: 0 taxonomy_term: blog_categories: blog_categories tags: 0 hide_breadcrumbs: false
That is covered with the same config schema
Remaining tasks
- ✅ File an issue about this project
- ✅ Addition/Change/Update/Fix to this project
- ✅ Testing to ensure no regression
- ➖ Automated unit/functional testing coverage
- ✅ Developer Documentation support on feature change/addition
- ✅ User Guide Documentation support on feature change/addition
- ✅ Accessibility and Readability
- ✅ Code review from 1 Varbase core team member
- ✅ Full testing and approval
- ✅ Credit contributors
- ✅ Review with the product owner
- ✅ Update Release Notes and Update Helper on new feature change/addition
- ❌ Release varbase-9.0.15, varbase_media_header-9.0.6, varbase-10.0.0-beta1, varbase_media_header-10.0.0-alpha1
Varbase update type
- ✅ No Update
- ➖ Optional Update
- ➖ Forced Update
- ➖ Forced Update if Unchanged
User interface changes
Configure block - Varbase Media Header

API changes
- N/A
Data model changes
- N/A
Release notes snippet
- Issue #3319641 by YazanMajadba: Added support to enable Varbase Media Header on Taxonomy Terms entity type
| Comment | File | Size | Author |
|---|---|---|---|
| #18 | Configure-block-dev-varbase10c1--Varbase-Media-Header.png | 269.69 KB | rajab natshah |
| #18 | Varbase-Media-Header-Settings-dev-varbase10c1.png | 145.26 KB | rajab natshah |
| #7 | support_media_header_on_term_page.patch | 13.37 KB | yazanmajadba |
Issue fork varbase_media_header-3319641
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments
Comment #2
rajab natshahComment #3
rajab natshahComment #4
rajab natshahComment #5
rajab natshahComment #6
rajab natshahThank you, Yazan, for the epic work on this new feature.
support-term-page.patchfile from the patchRecommended using the issue fork contribution workflow. Creating issue forks and merge requests.
Keep Conventions in Mind
Recommended following Drupal coding standards and naming conventions.
Comment #7
yazanmajadba commentedThanks Rajab
Comment #11
rajab natshahComment #12
rajab natshahComment #13
rajab natshahComment #18
rajab natshahComment #19
rajab natshahComment #22
rajab natshahComment #25
rajab natshahComment #27
rajab natshah~9.0.0Configuring Varbase Media Header
~10.0.0Configuring Varbase Media Header
Comment #28
rajab natshahComment #29
rajab natshahComment #30
rajab natshahThat is covered with the same config schema
Comment #31
rajab natshah~9.0.0Configuring Varbase Media Header
~10.0.0Configuring Varbase Media Header
Comment #32
rajab natshahComment #33
rajab natshah✅ Released varbase_media_header-9.0.6
Comment #34
rajab natshah✅ Released varbase_media_header-10.0.0-alpha1
Comment #35
rajab natshah✅ Released varbase-9.0.15