Skip to content
This repository has been archived by the owner on Apr 3, 2024. It is now read-only.

Adding widget script hides existing relations in CMS #132

Closed
dannykennedy opened this issue Aug 19, 2021 · 2 comments
Closed

Adding widget script hides existing relations in CMS #132

dannykennedy opened this issue Aug 19, 2021 · 2 comments

Comments

@dannykennedy
Copy link

Following the README, I added <script src="https://unpkg.com/@ncwidgets/netlify-cms@^0.7.0/dist/netlify-cms.js"></script>, instead of <script src="https://unpkg.com/netlify-cms@^2.0.0/dist/netlify-cms.js"></script>.

However when I went to the CMS, the values I had previously populated in relation widgets were missing. (Although saving entries with ncw-id fields did not remove the relations in the .md files). The little tags in the CMS UI were simply not there any more. When I removed the ncw-id script and widget, and adding back the original script, the relation tags came back in the UI.

@d4rekanguok
Copy link
Owner

My apologies, since Netlify CMS has now included the relation features, I have not updated my build of Netlify CMS.

Do you only use it for ncw-id + relation? Would this built in suggestion solve your case? decaporg/decap-cms#3712 (comment)

@dannykennedy
Copy link
Author

Thanks @d4rekanguok , yes I found that comment after I added this issue and it works for me.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants