Closed (fixed)
Project:
Pathauto
Version:
7.x-1.2
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
22 Nov 2012 at 01:14 UTC
Updated:
25 Apr 2014 at 18:11 UTC
Jump to comment: Most recent
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
Comment #1
dave reidEnable the http://drupal.org/project/migrate_extras module, and then set $this->addFieldMapping('pathauto', FALSE).
Comment #3
badrange commentedThe patch for pathauto in this issue might be helpful:
https://drupal.org/node/1128870