When i want to hide blocks and then accept all cookies, the blocks won't re-render.

I have created blocks to render my iframes, so that i can stop the blocks from being rendered until the user gives consent. (No, just using the iframe feature doesn't help, the frames are still rendered then.)

the block is recognised but I think somehow the site won't notice the consent.

Command icon 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

xdkevgo created an issue. See original summary.

xdkevgo’s picture

I am using Drupal core 11.0.4 and php 8.3.11

guido_s’s picture

Assigned: Unassigned » _shy

For iframes or videos you'd need to add the correct filter in your text format settings if you haven't done this when testing with the submodule for iframes. But we'll have a look into the blocks too.
You used content blocks right? Or did you add a block programmatically?

_shy made their first commit to this issue’s fork.

_shy changed the visibility of the branch 3475743-blocks-are-not-rendered to hidden.

_shy changed the visibility of the branch 3475743-blocks-are-not-rendered to active.

_shy’s picture

Version: 1.2.0 » 1.0.x-dev
Status: Active » Needs review

I re-opened an MR due to the problem with pushing changes.

I found an issue with the JS code, which triggers an error when rendering or replacing placeholders.

  • guido_s committed b2095aff on 1.0.x authored by _shy
    #3475743 Problem with JS code during rendering and replacing placeholder
    
guido_s’s picture

Seems this was an issue where I messed up by trusting too much in the linters.
@_shy identified the issue and we just merged a fix.
I will release a new version.

guido_s’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.