Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No Corresponding Fields Found #9

Open
M-GRV opened this issue May 12, 2023 · 4 comments
Open

No Corresponding Fields Found #9

M-GRV opened this issue May 12, 2023 · 4 comments

Comments

@M-GRV
Copy link

M-GRV commented May 12, 2023

I've tried doing this a few ways but everytime I select the collection I see this:

image

What should I be doing to make the collection compatible?

@M-GRV
Copy link
Author

M-GRV commented May 19, 2023

@dimitrov-adrian any idea on what Im doing wrong?

@gokhanozdemir
Copy link

gokhanozdemir commented Jun 11, 2023

Same here

@gherkster
Copy link

I think I've fixed the issue, there's a value missing from this object which may have become required at some point.

options: {
allowNone: false,
typeAllowList: ['string', 'integer', 'bigInteger'],
allowForeignKeys: false,
allowPrimaryKey: true,

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.

image

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.

@nico-kow
Copy link

Is there a chance to get this extension updated with this fix anytime soon? @dimitrov-adrian

kinged007 added a commit to kinged007/directus-extension-tags-m2m-interface that referenced this issue Jul 26, 2023
Update for fix mentioned in issue dimitrov-adrian#9
kinged007 added a commit to kinged007/directus-extension-tags-m2m-interface that referenced this issue Jul 26, 2023
kinged007 added a commit to kinged007/directus-extension-tags-m2m-interface that referenced this issue Jul 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants