I'm using migrate to import a bunch of nodes and I want to set the path alias during the migration. I am able to import the path alias just fine like so:

$this->addFieldMapping('path', 'url_alias');

When I look at the imported nodes I see the correct path in the path field, but the "Generate automatic URL alias" checkbox is still checked which means the setting is getting ignored.

How do I disable that setting on the node during migration?

Comments

dave reid’s picture

Status: Active » Fixed

Enable the http://drupal.org/project/migrate_extras module, and then set $this->addFieldMapping('pathauto', FALSE).

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

badrange’s picture

Issue summary: View changes

The patch for pathauto in this issue might be helpful:
https://drupal.org/node/1128870