Calling all developers! We invite you to provide your input on Feature Experimentation by completing this brief survey.
Calling all developers! We invite you to provide your input on Feature Experimentation by completing this brief survey.
Hi Jonas,
It's a bit hidden in documentation - but you need to register them at startup. Inside an initialization module's Initialize method, add the following code to register them.
var associationDefinitionRepository = context.Locate.Advanced.GetInstance<GroupDefinitionRepository<AssociationGroupDefinition>>(); associationDefinitionRepository.Add(new AssociationGroupDefinition { Name = "MyGroup" });
Hope this helps,
/Matt
In EPiServer CMS Catalog - when editing an article, how can I create a relation type other than Default?
I'm using
EPiServer.CMS version="8.11.0"
EPiServer.Commerce version="8.16.1"