Right now, for items of post-type attachment we retrieve the file itself, set up a file_managed row for it, and rewrite any references in node bodies to point to the file locally - but we don't populate any file or image field on the node. We should do this - the issue is identifying what field to use, which will require some configuration.

Comments

jaxxham’s picture

It would be great if this were possible - for example, taking the "featured image" in Wordpress and populating a Drupal image field. Is there currently any way to do this?

mikeryan’s picture

Version: 7.x-1.x-dev » 7.x-2.x-dev
mikeryan’s picture

Assigned: Unassigned » mikeryan
Status: Active » Fixed

Done - you can now configure a field on the post type to which to attach attachments.

ñull’s picture

Status: Active » Fixed

The description of this module hints at using the Media module. I use a content type with image field and Media browser widget. When migrating directly through HTTP I don't see a choice for a field. Is it not supporting this kind of field? Or is this not supported in HTTP migration?

ñull’s picture

Category: feature » support
Status: Fixed » Active
mikeryan’s picture

Status: Fixed » Postponed (maintainer needs more info)

First off, when and how did you download the wordpress_migrate module? I committed this support yesterday afternoon (U.S. EDT), if you pulled from git after that you would have it, but there's typically a delay of several hours before the -dev release you download directly gets rebuilt.

On the Import page, under IMPORT SETTINGS, if the node type you have selected under "Convert WordPress posts to" has any file or image fields, below that you should see "Field for attachments (if any)". With a fresh (as fresh as possible) copy of wordpress_migrate, are you still not seeing that?

mikeryan’s picture

I just committed a couple of bug fixes that may help - one to recognize "media" fields (now deprecated in Media 2.x, but still in Media 1.x), and I replaced some hard-coded instances of my attachment field name with the configured name - please get the latest git code (or wait for -dev to be rebuilt) and try again.

mikeryan’s picture

Status: Postponed (maintainer needs more info) » Fixed

Presumably the release used was not fresh enough.

Status: Fixed » Closed (fixed)

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

thalism’s picture

Status: Closed (fixed) » Active

I see my image field in the import settings, but when I import the content, the images are not imported, and i haven't any error too... both drupal and wordpress sites have to be in the same server, or something?

mikeryan’s picture

Status: Active » Closed (fixed)

@thalism: Please don't reopen long-closed issues - first check for open issues (in this case #1760950: Images never copy on migrate appears relevant) and if you don't find something clearly relevant open a new issue.