...
Example of using the image UIHint
Code Block | ||
---|---|---|
| ||
[Display(Name = "Content Reference (Optimizely)", GroupName = "Content Reference", Order = 10)]
[UIHint(ContentPlatformUiHint.Image)]
public virtual ContentReference ContentReferenceOptimizely { get; set; }
[Display(Name = "Content Reference (Fotoware)", GroupName = "Content Reference", Order = 20)]
[FotowareConfiguration(DisableDefaultMediaSelector = true)]
[UIHint(ContentPlatformUiHint.Image)]
public virtual ContentReference ContentReferenceFotoware { get; set; }
[Display(Name = "Url (Optimizely)", GroupName = "Url", Order = 10)]
[UIHint(ContentPlatformUiHint.ImageUrl)]
public virtual Url ImageAsUrlOptimizely { get; set; }
``` |
The UIHint attribute can be applied to ContentReference and Url property types.
...