Pause Ad Banner or hide

Created on 1 March 2025, about 2 months ago

Problem/Motivation

Is there a way to pause or hide a specific banner?

The only way I found is to hide the block but if I have several banner I will hide all banner in same block..

💬 Support request
Status

Active

Version

4.0

Component

ad module

Created by

🇲🇽Mexico koffer

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

Merge Requests

Comments & Activities

  • Issue created by @koffer
  • 🇲🇽Mexico koffer

    May be adding a none option in size?

    I thing the banner size is a way to select a kind of block to show it. So if I have the option to select nothing the banner will not appear but will be create.

  • 🇩🇪Germany Grevil

    We need to show the "status" (published) checkbox in our default form display.

  • 🇩🇪Germany lrwebks Porta Westfalica

    Part of our 11.x efforts, so it will be a follow-up to 📌 [META] 11.x feature updates Active .

  • Merge request !8Resolve #3510487 "Show status published" → (Merged) created by lrwebks
  • 🇩🇪Germany lrwebks Porta Westfalica
  • 🇮🇳India Kanchan Bhogade

    Hi
    I have tested MR 8 on Drupal 11.x
    The MR is applied successfully...

    By default "status" (published) checkbox is available for add and edit form.

    RTBC+1

  • 🇩🇪Germany Grevil

    LGTM and works as expected. But there are two points to talk about:

    1. Should we really use a yaml definition to define the form of the ad content entities? Should we instead create a new AdContentForm extending "ContentEntityForm" and use that instead? So we have the form definition baked in code instead of defining it through a yml?
    2. Do we need an update hook here? The new checkbox won't appear for existing installations. Do we want 11.x to be backwards compatible? Probably right?

    What do you think @anybody?

  • 🇩🇪Germany Anybody Porta Westfalica

    Wonderful, this is the correct fix. We need no update hook I think, as this would (possibly unexpectedly) change existing installations. New installations should be fine now.

  • Pipeline finished with Skipped
    5 days ago
    #479218
  • 🇩🇪Germany Anybody Porta Westfalica
  • 🇩🇪Germany Grevil

    As stated above:

    The new checkbox won't appear for existing installations.

    meaning if we need backwards compatibility, this patch alone won't do it.

  • 🇩🇪Germany Anybody Porta Westfalica

    Nope that's not needed. It's just a feature request, not a bug. Anyone who wanted it, was and is able to enable it. This is just for better default behaviour and convenience :)

Production build 0.71.5 2024