Block visibility conditions

Created on 19 July 2016, almost 8 years ago
Updated 4 April 2024, 3 months ago

We can set visibility conditions (variant selection criteria) at page and variant level, but it would be nice to apply visibility rules on individual blocks (panes). You used to be able to do this in D7.

There's a patch doing exactly this for Page Manager in ✨ Allow for block visibility rules Needs review . The patch currently being worked on in this issue leverages that. However it currently means introducing a new dependency on Page Manager. Possible solutions:

  • Factor the visibility/condition form functionality into core.
  • Factor the visibility/condition form functionality into ctools (which is already a dependency of both Page Manager and Panels).
  • Make Panels only show/use the visibility conditions if Page Manager is installed (ugly imho).
  • Any other ideas...?!

@vbouchet took a different approach in solving the problem by providing a new kind of access plugin for Panels 3.x and 4.x in #11.

Remaining tasks

πŸ“Œ Task
Status

Needs work

Version

4.0

Component

User interface

Created by

πŸ‡§πŸ‡ͺBelgium kriboogh

Live updates comments and jobs are added and updated live.
  • Needs tests

    The change is currently missing an automated test that fails when run with the original code, and succeeds when the bug has been fixed.

Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.69.0 2024