Quantcast
Channel: Developer to developer
Viewing all articles
Browse latest Browse all 9076

UIHint.CatalogContent not working for ContentArea properties?

$
0
0

I've worked with Commerce for quite a while, so am not sure how it was in the past, but I expected UIHint.CatalogContent to work with a ContentArea property:

[Display(
    Name = "Test A",
    GroupName = SystemTabNames.Content,
    Order = 5)]
[UIHint(UIHint.CatalogContent)]
[AllowedTypes(typeof(VariantContent))]
public virtual ContentArea TestA { get; set; }

But, when clicking "Browse existing content" it results in the UI picker just showing the media items.

However, if I have a ContentReference:

[Display(
    Name = "Test B",
    GroupName = SystemTabNames.Content,
    Order = 8)]
[UIHint(UIHint.CatalogContent)]
[AllowedTypes(typeof(VariantContent))]
public virtual ContentReference TestB { get; set; }

It loads the UI picker (by clicking the elipse next to the content reference) and as intended, this browses the catalog content in the pop up.

Is this expected? Is UIHint.CatalogContent just not compatible with ContentArea?


Viewing all articles
Browse latest Browse all 9076

Trending Articles