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

Sites within same group and translatable per group, are not updated on import #564

Closed
amityweb opened this issue Jun 23, 2019 · 2 comments
Closed

Comments

@amityweb
Copy link

amityweb commented Jun 23, 2019

I have a group, Spanish, in which are 4 sites, Spain, Brazil, Mexico and Colombia.
The fields are set to be translateable per group.
I run a feed to import content into Spain and that works fine
When I create a new site, such as Brazil, the content from Spain is copied over as expected.
Then I added a new field for my entries.
I updated the FeedMe feed to link the new field to the feed
I imported Spain again
The Spain site had the new field entered with content OK
The other spain sites do not have data in the field, it is empty.

So it seems the fields are duplicated on creating the site as expected, but they are not when importing using FeedMe.

Craft CMS 3.1.29
Feed Me 4.1.0

@amityweb
Copy link
Author

amityweb commented Jun 23, 2019

Looking into this further, I guess FeedMe does not initiate a resave of entries which is needed.

In the meantime discovered this command which will do the job:
php craft resave/entries --section=pages --site=es

Note usage of --section and --site to ensure only the correct ones are processed.

The resave results in the new field being duplicated in all the sites in the group.

Would be good if FeedMe builds this in I guess?

@brandonkelly
Copy link
Member

This is fixed for the next release.

To get the fix early, change your craftcms/feed-me requirement in composer.json to:

"require": {
  "craftcms/feed-me": "dev-develop#bd2faaf667b1547cdc5f73052e85d52a12543bab",
  "...": "..."
}

Then run composer update.

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

2 participants