The wordpress site has images within the body using html. Here's an example from the .xml file:

<img id="image225" alt="" src="http://www.website.com/wp-content/uploads/2006/09/go.png" />

Now... here's how it's imported:

[[{"type":"media", "view_mode":"media_large", "fid":"255", "attributes":{"class":media-image post_images", "typeof":"foaf:Image", "style":"", "alt":""}}]]

I've tried importing as full and filtered html. Any ideas? I have 250+ posts to import, so manually changing things won't work.


Here's a screen shot of one of the nodes. You can see it did import some images, but even then it still left in a bunch of extra characters about the image.

screen shot

Comments

mikeryan’s picture

Category: bug » support
Status: Active » Fixed

You have the Media module enabled, so the migration renders image references as media tags - you need to change your filter to interpret the tags. See #1642352: Media Links.

cfox612’s picture

That was it. Thanks!

mikeryan’s picture

Title: Importing html within body » Media tags rendered in node body
Component: Code » Documentation
Status: Fixed » Active

Actually, this is the second time this has come up, so I should document this issue. I had assumed the Media module automatically made the proper setting on filters, but it seems not...

mikeryan’s picture

Status: Active » Fixed

@geekgirlweb created a page for this at http://drupal.org/node/1870458, thanks. Rather than have a stand-alone page, I've converted into FAQ form, other issues like this should be added on that page.

Status: Fixed » Closed (fixed)

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

Anonymous’s picture

Issue summary: View changes

Added image