I Updated my site from 3.5.8 to 3.6.3.1 recently. Since then the preview of some of my custom blocks is broken in the panel. Here’s the panel .js code:
textcolumns: {
template: `
<div :class="'k-block-type-box box-' + content.boxtype" @dblclick="open">
<div v-if="content.textleft" v-html="content.textleft"></div>
<div v-else>Zur Zeit kein Text</div>
<div v-if="content.textright" v-html="content.textright"></div>
<div v-else>Zur Zeit kein Text</div>
`
},
After the uptdate, all my custom blocks, which contains „text“-Elements shows the text in the blocl-editor view (click on pencil icon in block), but didn’t show it in the panel preview. The panel shows the default block-view with „no headline“, „no-subline“ content. The webpage view is correct so.
That somehow doesn’t fit together. You are using box as preview, but your box preview has other fields than what you have defined in the textcolumns yaml.
Changing the preview prop in your yaml to textcolumns should fix the issue. But note that probably due to copy & paste, you also have an undefined content.boxtype in your textcolumns preview. So careful here.
Thanks didn’t recognized the preview-tag. It worked somehow with the former Kirby Version, but of course was not correct. And sorry for the „copy and paste code“