London Dev Meetup Rescheduled! Due to unavoidable reasons, the event has been moved to 21st May. Speakers remain the same—any changes will be communicated. Seats are limited—register here to secure your spot!
AI OnAI Off
London Dev Meetup Rescheduled! Due to unavoidable reasons, the event has been moved to 21st May. Speakers remain the same—any changes will be communicated. Seats are limited—register here to secure your spot!
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"