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!
AI OnAI Off
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!
Does it say it can't find a renderer for the property? If I recall correctly, the correct path to the ImageBlock partial should be "Views/Shared/ImageBlock.cshtml", unless you are pushing the block through a controller.
Hi, Tahir,
I have not placed my ImageBlock (that I am using as local block and rendering with PropertyFor) inside Views/Shared/ImageBlock.cshtml.
Instead, I have placed it inside Views/Shared/DisplayTemplates/ImageBlock.cshtml
i'm facing a similar dilema to Tahir, I have tried putting into DisplayTemplates although still get the message their is no render for this block.
For now I am using seperate controllers although dont think this is the tidiest thing to do.
I have a custom block with two properties - an image url and an alternative text
I have created a partial view in shared directory /shared/ImageBlock/index.cshtml as
So I am hoping when I call something like
My partial view should get called, but the partial view never gets called.
- TestProperty is a property of type ImageBlock
Can any body please help me