Not working with blocks?

Created on 18 September 2024, 3 months ago
Updated 19 September 2024, 3 months ago

Please, can you clarify if this module allow to handle blocks?

Problem/Motivation

I could not verify the correct functioning of this module on blocks.

Steps to reproduce

1. Adds a "scheduler_field" field on a custom block type,
2. Create an instance of this block and place it anywhere in the blocks layout
3. Set a future start (publish) date
4. Go to the page where this block is not supposed to appear, the block is already visible/published

💬 Support request
Status

Active

Version

1.0

Component

Code

Created by

🇫🇷France dxx Bordeaux/Paris/La Baule

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

Comments & Activities

  • Issue created by @dxx
  • 🇫🇷France goz

    Do you create your block as unpublished? So with status = false?

  • 🇫🇷France dxx Bordeaux/Paris/La Baule

    By default a block type don't have a status field. What do you mean?

  • 🇫🇷France goz

    By default, block entity has a status property. So if you don't have a status field displayed, I guess your block is created with status published.
    Scheduler field assumes you know what you do when you set status editing an entity (and that you can change the status). It assumes that if you plan to publish an entity in the future, you already create it unpublished.

    May be it could be a new feature to enforce status to published/unpublished entity (or every other scheduled actions) when it's saved depending of scheduler field configuration

    In the meantime, perhaps you can find a module that give you access to the status field of a block in layout builder?

Production build 0.71.5 2024