Five New Optimizely Certifications are Here! Validate your expertise and advance your career with our latest certification exams. Click here to find out more
AI OnAI Off
Five New Optimizely Certifications are Here! Validate your expertise and advance your career with our latest certification exams. Click here to find out more
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"