Try our conversational search powered by Generative AI!
AI OnAI Off
Think adding the following UIHint is what you want Danie. [UIHint(EPiServer.Commerce.UIHint.CatalogContent)]
Hi,
Which version are you using?
ContentReference to catalog content was not supported until 7.10.
Regards.
/Q
Hi,
I have a page type in the CMS that needs to link to a single Commerce product or variant.
[Display(
Name = "Slide Content"]
[AllowedTypes(typeof(MyProduct), typeof(MyVariation))]
public virtual ContentReference SlideContent { get; set; }
In the CMS as an editior, when trying to select the product/variant, the dialog box only displays a "Root" node.
What is the correct way to link to a single catalog item? Changing ContentReference to Url works, but it doesn't seem correct as it give the editors to many other options.
Thanks
Danie