Active
Project:
Conditional Rendering
Version:
1.0.2
Component:
Documentation
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
18 Nov 2025 at 23:33 UTC
Updated:
6 Sep 2026 at 09:28 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
jive01 commentedComment #3
jive01 commentedComment #4
stewestHi.
I found that I had to create/add the block inside of Layout Builder (i.e. via the Layout builder side bar), and set the conditional formatting there.
I.e. it doesn't seem to work if I set the conditions via the block content config form at /admin/content/block ....
I used "not contains" in [current-user:roles] and a certain role's machine name. It might be more user friendly if the dropdown was a generated list of options.
then when I do want it to show for a certain role, I used "contains" options in property = [current-user:roles] and value club_admin
Comment #5
jive01 commentedThat's terrible UI. What's the point on even putting those fields in the block only to confuse people?