Okay, I need some directions on how to import some old data (non Drupal) into a new Drupal site.

People can create a user on the site and add (Flag) things to what we call their collection. This is simple a node with a "Add to Collection" flag button. Now, people was able to do this on the old site as well. I need a way to import that data into the new Drupal site.

What I can create is ex. a XML/CSV file with:
The Drupal "User id" and the "Node id" - As in this USER ID has this NODE ID in his collection.

Is it possible to import this? Perhaps using Feeds? I could write directly into the flag_content table but do I dare that?

Let me know your ideas and thanks for a great module and community.

Comments

joachim’s picture

Title: Import lists based on flag into a new site » Migrate support for flag
Version: 7.x-2.0-beta6 » 7.x-3.x-dev
Category: support » feature

> I could write directly into the flag_content table

Probably not a good idea, as lots of API things fire off when you flag something.

> Is it possible to import this? Perhaps using Feeds?

I would recommend Migrate module. Now that flaggings are entities it should work with the Migrate Extras module, but I'll leave this open for other people to report findings.

joachim’s picture

Status: Active » Closed (duplicate)

There's another issue with Migrate support.

geerlingguy’s picture