- Issue created by @mortona2k
- Status changed to Fixed
about 1 year ago 11:09am 20 March 2024 - e0ipso Can Picafort
I think the current solution you mention is the actual way to go.
Without this, I am creating an extra display mode to use SDC, and using the rendered entity formatter to show it. However, in one case I have a prop for an html tag, and it would be nice to configure this from the parent display.
After rendering, an entity can no longer be considered structured data. Therefore it needs to be put in a slot.
- πΊπΈUnited States mortona2k Seattle
The solution worked well, I actually used a static token to set the html tag, so it's flexible if you're setting the variable manually.
Here's another case.
I have a block with an entity reference to different content types. I want to make a card component that shows the title, image, and body summary. With this workflow, I have to set up that display mode for all the content types. By having a more capable entity reference sdc ref, we could do that all in one place.
But, I think the solution for that will be in layout builder relationships and tokens.
Or maybe creating a view that lists the fields, but then we need an SDC Views module ;)
Automatically closed - issue fixed for 2 weeks with no activity.