Getting-started:Relationship type?

https://enonic.com/docs/latest/getting-started/index.html#use-the-relationship-type-in-a-descriptor

<config>
    <relationship-type>com.enonic.xp.modules.my-first-module:related-person</relationship-type> 
</config>

Var kommer “com.enonic.xp.modules.my-first-module” ifrån? Jag får ett 500-fel om jag inte kommenterar ut dessa tre raderna.

Hi Michele,

On a content-type I tried this on it should be no problem for you to just write like this if it’s a local content-type relationship.

<config>
  <relationship-type>related-person</relationship-type> 
</config>

The “com.enonic.xp.modules.my-first-module” comes from the gradle.build naming of the module and the module group. Check that file in the root.

1 Like

Hi Michele,

You only need the full module path if the relationship type or related content is in another module. Also, I doubt there is any reason to use a relationship-type now that it is so easy to add related content. ContentSelector

I updated the documentation for these. Also, if you ever need to find the full name of a module, check the “Modules” app in the admin console and it is displayed on that page.

2 Likes