CDN mode changes

Created on 9 January 2024, 10 months ago
Updated 6 February 2024, 9 months ago

Problem/Motivation

A media type should be created when using the CDN mode, for easier tracking of Kontainer media in Drupal. The Media source module setting will now indicate what media type to create, instead of what Kontainer field type can be added to an entity. The Kontainer CDN field type will not be the source field of the new CDN media type and will not be applicable to any entities. The Kontainer media storage field type will not also allow adding a reference to the new CDN Kontainer media type.

Proposed resolution

• Create a media source plugin, which uses the Kontainer CDN custom field type as the source field (add custom to create a Drupal file entity for the thumbnail)
• Create a new media type, that uses the above media source plugin on the module install
• Change the Kontainer CDN field, to not be applicable to any other entities
• Change the Media storage field logic, to check which media type to create, based on the Media source module settings value (CDN or Media storage) and rename it.
• Change the media storage module setting (description) and remove the logic for toggling field visibility in the dropdown, when adding a new field to an entity.
• Update module configuration schema
• Allow adding of the new CDN media type directly on the media add form for it (/media/add/{kontainer_cdn_media_type}. This is not allowed for non-CDN Kontainer media types.

Feature request
Status

Fixed

Version

1.0

Component

Code

Created by

🇸🇮Slovenia slogar32

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024