#Connecting Relationships

12 messages · Page 1 of 1 (latest)

bronze belfry
#

When I add a M2O relationship, year “1999” to an era “modern” it initially shows as the 4 digit year when selecting but then it shows up in the list view as the ID number rather than the integer input. Is there any way to display the input rather than ID?

https://docs.directus.io/configuration/data-model/relationships.html

Also I have set the min for year to be 1886 and max to be 2025 but it will still accept other values such as 1 or 292828. Is there a fix for this too?

Thanks

tepid salmon
#

you can add the value field with plus button on tabular layout

bronze belfry
#

So for example I could add Paris to France. Or I could add it the other way around, France to Paris.

tepid salmon
#

you can add M2O on city that reference to Country and add O2M on Country that reference to city

bronze belfry
#

Oh OK thanks, I will look at adding to both ends

bronze belfry
#

If so, I will need to be careful not to delete it accidentally

tepid salmon
#

i think it is junction collection?? By default M2M automatically generated junction collection that greyed like that

bronze belfry
#

oh I see, I will try with M2O maybe that grey text will go away

bronze belfry
#

@tepid salmon it's working much better now, thanks 🙂

Just wondering.. if I delete an entry can the image uploaded to that entry be deleted automatically too?

For France I added the flag directly to this as an image input. But if I delete the entry "France" the flag stays in the media folder

tepid salmon
#

For that purpose you need to create flow or custom extension hook