Turn ad sizes into config entities

Created on 16 April 2025, 12 days ago

Problem/Motivation

To enable a lot more flexibility using this module, the different available ad sizes could be turned into config entities. Currently, the system is a bit hard to use and unflexible (actual sizes are not shown, only names and there are blocks for every single size).

Steps to reproduce

Proposed resolution

  • Create a config entity for ad sizes that includes a name, width, and height
  • Keep all the previous size settings by creating entities for them via the update / install hook
  • Turn all the ad block contents into a single “ad block” content and make the size be a property of that block instead
  • Ensure proper content migration via update hook of course

Remaining tasks

User interface changes

API changes

Data model changes

Feature request
Status

Active

Version

11.0

Component

ad module

Created by

🇩🇪Germany lrwebks Porta Westfalica

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

Comments & Activities

  • Issue created by @lrwebks
  • 🇩🇪Germany Anybody Porta Westfalica

    We should call these "ad placements" or something like this perhaps, so that the site owner can decide how to use it with more flexibility.

    Ad placements can this way be either created just by size, e.g. "Rectangle" or can even be more precise for a region, like "Content area rectangle".

    They should therefore have a human-readable label and a machine name. The ad placement can be selected in the ad block (eventually multi-value) and in the ad to publish there (eventually multi-value).

Production build 0.71.5 2024