Hi, we are using a dynamicly rendered litium solution (eg the html content can be server rendered if we want, defaults to rendering CSR only without server generated html ).
We are not getting any block previews thumbnails and i do not know how to debug this with the “new” JS support.
It should handle CSR blocks right since it uses node/headless?
Do we need to include <section data-litium-block-id="b1041abb-eebb-4e8f-aca5-d6808da0b706"> block </seaction> in the rendered html fot the thumbnails to be generated?
Is there a url that i can use for debugging? pasing the page id and block id? to see what will be created?
Yeah, the section tag with the id should be there. The thumbnail generator opens the preview page, scrolls to the section with the block id and then takes the screenshot.
As long as it has the data-litium-block-id attribute it should find it. You can see the thumbnail generator script in Files\NodeServices\<version hash>\generateThumbnail.js.
OKi, so the block seams to be generating when we use our old domains, but when we acces the backoffice from our newest,the block dose not seam to generate. Should the url we access the backoffice have any inpact? or was this just a fluke?
Are there any restrictions on the new back office domain? Like it’s only accessible from certain IP addresses. In another case when the thumbnail wasn’t being generated it was because the IP of the server itself wasn’t whitelisted.