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!
How do I register a MVC partial view for a string-property?
Some code:
[ContentType]
public class MyPage : PageData
{
[UIHint("myhint"]
public virtual string MyProperty {get;set;}
}
How can I provide a Razor view in an Add-on that will be used to render "MyProperty"? If I create a View in Views/Shared/DisplayTemplates/myhint.cshtml it will be used, but how do I let EPiServer know about "myhint.cshtml" in my Add-on?