Virtual Happy Hour this month, Jun 28, we'll be getting a sneak preview at our soon to launch SaaS CMS!

Try our conversational search powered by Generative AI!

Related entries in Catalog

Vote:
 

In EPiServer CMS Catalog - when editing an article, how can I create a relation type other than Default?

Related entries

I'm using
EPiServer.CMS version="8.11.0"
EPiServer.Commerce version="8.16.1" 

#142296
Dec 08, 2015 15:58
Vote:
 

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

#142302
Dec 08, 2015 16:50
This topic was created over six months ago and has been resolved. If you have a similar question, please create a new topic and refer to this one.
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.