Quantcast
Channel: Issues for Drupal core
Viewing all articles
Browse latest Browse all 294185

Problems using 'Rendered entity - Block' in header/footer

$
0
0

Problem/Motivation

Views allows rendering a block in the View header or footer using the 'Global: Rendered entity - Block'

Problem 1: Bad UX

What value to enter in the field 'Block ID'. After a bit of trial and error, I managed to get this working by adding a block to a region, editing the block and getting the ID from the URL.

Problem 2: Dependency on block in region

I've "created" a block ID by placing a blok in a region. But the block ID only exists as long a the the block is configured to be visible in a region. When the block is deleted from the region, the View breaks.

Proposed resolution

  • Make a block selectable via the interface, similar to the selection following 'Place block' on /admin/structure/block.
  • Make rendering a block in the view independent of the block being placed in a region.

Remaining tasks

  • Make a patch
  • Write test

User interface changes

Improved UX by making a block selectable.

API changes

Data model changes


Viewing all articles
Browse latest Browse all 294185

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>