Try our conversational search powered by Generative AI!

Preview for Blocks

Vote:
 

Hello team,

Based on the documentation,  I am trying to create a preview for one of the blocks I have. The block essentially has only one XHTMLString property. I created a partial view with the name of the Block and kept it in the views/shared/blocks folder but it doesn't give me the option to preview.

Is there anything am missing? Per documentation I don't necessarily need controller or view model. 

#254448
May 06, 2021 16:31
Vote:
 

Do you have a preview controller? 

#254492
May 07, 2021 14:59
Vote:
 

I don't have a preview controller as I was in understanding that there is no controller or view model required.

#254493
May 07, 2021 15:04
Vote:
 
#254494
May 07, 2021 15:07
Vote:
 

Thank you for this. I will give this a try. I was under assumption that no controller or view model required (but I guess that meant no block specific controller or view model required) I will update once I have tried this.

#254497
May 07, 2021 15:52
This topic was created over six months ago and has been resolved. If you have a similar question, please create a new topic and refer to this one.
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.