I have a Drupal 10 site with a content type Landing page which is set to work with Layout builder. Layout builder enables the content type to pull in blocks and webform nodes. Now I would like to pull in nodes of other content types. Is this possible with Layout builder
- 1What do you mean exactly by "pull in nodes"? Layout Builder generally works with fields on a given entity.Patrick Kenny– Patrick Kenny2025-01-28 03:26:39 +00:00Commented Jan 28 at 3:26
- I want to embed nodes of other content types into the node hosting the layout builder. Let me know if this makes sense.Binny– Binny2025-01-28 04:47:45 +00:00Commented Jan 28 at 4:47
2 Answers
One way to do this is with the Views module, which is included with Drupal core.
Any view can be made to output a block, and you can use filters and display limits to display a single entity of a content type or multiple content entities.
I have found the answer. We can use the Entity block module to fetch nodes of any content type and embed them in the layout.
https://www.drupal.org/project/entity_block
Layout builder only allows blocks by default. So this module allows node entities to be converted into blocks.