Clarify Block Visibility Logic in “Pages” Tab

Created on 31 October 2024, 6 months ago

Problem:

The logic in the Pages tab under Block Visibility is confusing.

When selecting “Show for the listed pages” with an empty page list, the block displays site-wide, contradicting the expectation that it would not display without specified pages.

Similarly, selecting “Hide for the listed pages” with an empty list hides the block everywhere, when it logically should display on all pages.

This inconsistency is very confusing for both new and sometimes even experienced Drupal users like myself.

Proposed solutions:

  1. Add an “all pages” option in the UI for clarity.
  2. Adjust help text to explain that empty lists for “Show” and “Hide” conditions result in site-wide display or hiding, respectively.

This should make the behaviour more intuitive and user-friendly.

Feature request
Status

Active

Version

10.4

Component

block.module

Created by

🇨🇦Canada OMD

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

Comments & Activities

Production build 0.71.5 2024