Problem/Motivation
Some block are not working on render and preview tabs.
Entity display: Fields image, token
Views display: Views rows
Page Display: We have a preview replacement, should we make it generic?
Steps to reproduce
- Create an entity display with image (article from standard profile)
- The image sample is generated
- Remove this image field
- Add a block fields > image
No sample is generated on "render", on preview tab it's empty
Problem wit token in Entity display:
- Create an entity display
- Add a token with text
The Token is not renderer (stay label Token : my text) and not on preview
Proposed resolution
Have a fallback preview for these blocks? Like for page layout, concerned are (Views rows, an perhaps others)
Comments
Comment #2
mogtofu33 commentedComment #3
pdureau commentedMy feedback from #3561038: [Meta] Multiple fixes for beta1:
FieldItemInterface::generateSampleValue()with entity reference fields.Comment #4
pdureau commentedComment #5
just_like_good_vibeshello, just tested with the image field on article.
i couldn't reproduce it. i remove and re-add the image, it is shown again.
Comment #6
just_like_good_vibesi identified the token problem #3562086: Token source : improve preview
Comment #7
just_like_good_vibesComment #8
just_like_good_vibesi propose to postpone this issue to beta2 if you all agree.
By the way, #3562086: Token source : improve preview will fix the empty token sources in preview and improve the render of token sources in build mode.
@mogtofu33 i let you postpone that one after beta1 :)
Comment #9
mogtofu33 commentedThe field image seems related to prod mode when the generated sample is not good sometimes.
Dev tools provide a refresh sample, but that's annoying.
Blocks (Views row, Page title...) are replaced with a placeholder until we have a better solution.
As textfield is working, will remove token for now like Wyswiyg.