cmsInfo

Login/register
  • All
  • News
  • How To

Navigation

  • Blogs
  • Contact
  • Search
  • Tags
  • Recent posts
Feed Icon
Google
Delicious

Categories

  • All  
  • News  
  • How To  

Popular Tags

Aegir CMS Asbru CMS Community CMS Resources Drupal eZ publish Joomla Krysalis Mambo Managee Midgard Nuxeo OpenCMS PHPNuke Plone Typo3 WebGUI Xaraya Xoops Zope
more tags
0

Stella Power: Migrate module: migrating a node's taxonomy terms

http://www.stellapower.net –

One of the issues I encountered when migrating nodes to Drupal, using the migrate module, was that I couldn't associate nodes with more than one taxonomy term. Actually in this example, I'm migrating content from one Drupal database to another, so I'm going to assume everyone is already familiar with the database structure, specifically the node and term_node tables.

When I first started using the migrate module, I ran into a similar problem with migrating a user's roles. It's not possible to just create a Views relationship (aka LEFT JOIN) between the node and term_node tables using the node id. This will produce one row for each node and taxonomy combination, but the migrate module is only able to handle data sets that contain one row for each entity. With the above solution, I have more than one row for each node, which causes the migrate module to import the same node more than once, causing all sorts of problems.

Like with the user roles example before, we can overcome this by implementing a migrate hook, specifically hook_migrate_prepare_node().

read more

Read »
Created by Drupal 20 weeks 3 days ago
Category: News   Tags:
  • Drupal
  • News
  • Login or register to post comments
  • 0

Similar stories

Stella Power: Migrate module: migrating poll nodes 21 weeks 2 days ago
Stella Power: Migrating your website to Drupal 1 year 6 days ago
CivicActions: Migrate module: handling multiple user roles 43 weeks 3 days ago
CiviCRM Blog: Civi-migrate - proof of Concept 8 weeks 12 hours ago
  • Comments
  • Who voted
  • Related links

Tags for Stella Power: Migrate module: migrating a node's taxonomy terms

Tags

  • Drupal

Google
 
Web www.cmsinfo.org
RoopleTheme