1

I have a site in staging and production env, they have the same data structure. I want to sync an entry from staging to production. Is it something that Feed Me plugin can do? and how to generate the feed from staging, then import into production?

2

Feed Me could do this, yes.

Feed Me can accept the following formats:

  • JSON
  • CSV
  • XML
  • Google Sheet

Your best bet is to use JSON and have it created via an Element API, which is a first-party plugin.

You can follow the documentation to get a basic endpoint up and running without too much effort. It does require some familiarity with PHP but for basic usage, you can probably get away with using the example code provided in the documentation - scroll down in the docs to see example usages.

With the Element API, you will expose the elements as JSON. They will be available at a URL you specify via the endpoint (e.g. yoursite.com/api/news.json). This is the URL you input into Feed Me, map the fields, etc. If everything is set up correctly, Feed Me will parse the JSON and import it.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.