Razor: UITag in Add-on

Vote:
 

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?

 

#73662
Aug 05, 2013 11:53
This thread is locked and should be used for reference only. Please use the Episerver CMS 7 and earlier versions forum to open new discussions.
* 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.