London Dev Meetup Rescheduled! Due to unavoidable reasons, the event has been moved to 21st May. Speakers remain the same—any changes will be communicated. Seats are limited—register here to secure your spot!

Preview for Blocks

Vote:
0

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:
0

Do you have a preview controller? 

#254492
May 07, 2021 14:59
Vote:
0

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:
0
#254494
May 07, 2021 15:07
Vote:
0

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.