Content API should be able to select PropertyModel on more criterias than PropertyType

Vote:
 

Similar to UIHint to select which view to use for Properties and Blocks, I should be able to select different PropertyModels to be used for ContentAPI.

An example decorating my property similar to:

[JsHint("MyString")]
public virtual string MyProperty { get; set; }

Then I should be able to point out which PropertyModel to use to render my string property in a specific way for the JsHint "MyString".

Note that the attribute "JsHint" is just an example, any other suggestion would be fine with my as long as it's possible to pinpoint different ModelTypes.

#192339
May 15, 2018 14:55
Vote:
 

+1

#192505
May 17, 2018 15:45
Vote:
 

+1

#193787
Jun 05, 2018 10:13
* 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.