directus-extension-tags-m2m-interface
directus-extension-tags-m2m-interface copied to clipboard
No Corresponding Fields Found
I've tried doing this a few ways but everytime I select the collection I see this:
What should I be doing to make the collection compatible?
@dimitrov-adrian any idea on what Im doing wrong?
Same here
I think I've fixed the issue, there's a value missing from this object which may have become required at some point.
https://github.com/dimitrov-adrian/directus-extension-tags-m2m-interface/blob/5207039cfb865f4b6903d0e42546882fa89cd955/src/index.ts#L58-L62
Add collectionName: relations.m2o?.related_collection
to the options block so that it looks like this
options: {
collectionName: relations.m2o?.related_collection,
allowNone: false,
typeAllowList: ['string', 'integer', 'bigInteger'],
allowForeignKeys: false,
allowPrimaryKey: true,
then rebuild the project and drop in the updated index.js file. You'll now be able to see a "Corresponding Field" input in the Data Model editor where you've added the Tags component, which wasn't able to display before.
That new dropdown is the columns available on whatever "tags" table that's been set up for the many to many relationship. You'll need to set it to a column you want the tag values to be entered into. I had to manually create a value
column on my tags
data model so that I could select it in the dropdown.
Is there a chance to get this extension updated with this fix anytime soon? @dimitrov-adrian