How do I import data into Craft?

22

5

What's the best known way to import masses of data into Craft?

Are there tools that support the migration of content/users from say XML, JSON etc.

Steven Grant

Posted 2014-06-12T00:32:56.147

Reputation: 1 070

While this other question is framed around Wordpress, the answers apply to broader data import options and may be relevant here: http://craftcms.stackexchange.com/a/136/115

– Ben Parizek – 2014-06-21T19:58:19.843

Answers

17

There is craftimport which is an 'unsupported' starting point for importing entries from an XML source.

https://github.com/clearbold/craftimport

There is also Import:

https://github.com/boboldehampsink/import

which can import from CSV sources.

Check out http://straightupcraft.com/craft-plugins for a list of current Craft plugins.

Steve Adams

Posted 2014-06-12T00:32:56.147

Reputation: 1 136

15

If you’re comfortable with PHP, Craft has some plugin APIs that make creating content relatively painless. For example, EntriesService::saveEntry().

Brandon Kelly

Posted 2014-06-12T00:32:56.147

Reputation: 27 245

11

As far as ExpressionEngine goes, it looks like Mark Reeves has cooked up a starter plugin for that purpose.

Bob Olde Hampsink made an import plugin as well that works with CSV's.

Matt Stein

Posted 2014-06-12T00:32:56.147

Reputation: 2 676

2And there is always the option to write a importing plugin for your specific site's needs using Craft's services. – Brad Bell – 2014-06-12T00:38:38.437

5

It's not mentioned above, but in my experience the FeedMe plugin is by far the best way to import content.

Nathan D Huening

Posted 2014-06-12T00:32:56.147

Reputation: 335