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?
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?