Skip to content

Add layout builder support for the Services blocks #116

@andybroomfield

Description

@andybroomfield

When using layout builder with service content types, there's a case for adding the blocks into the layout (although custom field formatters would be better).

The Service CTA blocks, Related topics and Related links blocks don't work correctly inside layout builder. They rely on the current page route to work out the node id, without this the blocks fail as $this->node is not set and an empty check is needed to avoid a WSOD when adding the block.

A node context should be provided for these blocks (in ServiceBlockBase?) This allows the blocks to work with live preview and layout builder instead of displaying 'placeholder for'

Screenshot 2021-06-01 at 10 54 54 pm

.

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions