"display title" option for view blocks does not work

Created on 22 April 2025, 3 days ago

Problem/Motivation

The Display Title option in the block configuration provided by views-blocks does not have any effect.

Steps to reproduce

- Create view with CE-block
- Place the block, e.g. with layout builder
- While placing try changing "display title" option

Proposed resolution

a) Hide the option
b) Somehow pass the option to the frontend, or only pass the title if its checked.

📌 Task
Status

Active

Version

1.0

Component

Code

Created by

🇦🇹Austria fago Vienna

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

Merge Requests

Comments & Activities

  • Issue created by @fago
  • 🇦🇹Austria fago Vienna

    Not sure we can easily hide the option, I don't think we have the control over the block configuration form without lots of kungfu. Maybe the most pragmatic way would be to simply only send the "title" attribute if the display option is checked.

  • 🇦🇹Austria fago Vienna
  • Merge request !122Respect display title option. → (Merged) created by fago
  • 🇦🇹Austria fago Vienna

    Added MR. I made the attribute be an empty string instead of NULL, so it's explicit. a NULL attribute would end unset and a possible default value be applied, so with the empty string it should be more clear.

    Also extended test-coverage and refactored the test case a bit.

  • 🇸🇮Slovenia useernamee Ljubljana

    Code looks good, needs testing.

  • Pipeline finished with Skipped
    1 day ago
    #480653
  • Pipeline finished with Skipped
    1 day ago
    #480654
  • Pipeline finished with Skipped
    1 day ago
    #480658
    • fago committed 68770be9 on 1.x
      Issue #3520511 by fago: Fix "display title" option for view blocks does...
  • 🇦🇹Austria fago Vienna

    Discussed with usernamee that we do another final test round after merge, so moving on! Thanks for the review!

Production build 0.71.5 2024