There is a TODO in the import content screen about being able to choose a user to whom to assign content, instead of creating new users.

Comments

ksenzee’s picture

Status: Active » Fixed

Fixed in d0d34936eda7ae585f091ffab9cd6861975bc128.

mikeryan’s picture

Project: WordPress Migrate sandbox » WordPress Migrate
Version: » 7.x-2.x-dev
Status: Fixed » Needs review

Pulling over to main wordpress_migrate project.

mikeryan’s picture

Status: Needs review » Needs work
StatusFileSize
new3.27 KB

I don't think the behavior of this patch is quite what we want in the general case. It appears to force all incoming authors whose email addresses aren't already attached to Drupal accounts to be mapped to the specified account - it leaves no means to create accounts in those cases, which should be the default behavior.

Possible behaviors (keeping in mind most WordPress blogs will only have a single author):

1. Current - create any author account(s) which don't already exist. All imported pages/posts get mapped to a Drupal account with the same email address as the WordPress author.

2. What the TODO was suggesting - pick an existing Drupal account to be the author of all imported pages/posts.

3. Patch behavior - If an existing Drupal account with a matching email address exists, use that as the author, otherwise use the chosen account.

So, we need to present these three options in some clear understandable way...

mikeryan’s picture

Category: task » feature
ksenzee’s picture

Status: Needs work » Needs review
StatusFileSize
new3.55 KB

Here's a patch that lets you choose whether you want to create new users or pick an existing user.

mikeryan’s picture

Status: Needs review » Fixed

Committed with a label adjustment ("Assign unowned content to" seemed unclear, changed to "Default content author:"). Thanks!

Status: Fixed » Closed (fixed)

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