Here is an example display page where the data in the main panel was brought into drupal via the migrate module:

http://avbarn.museum.state.il.us/viewclip/3578

That is the result of a view, for which I have a tpl.php template set for the display.

The flash audio player is a cck field of type text (called "Media"), and I populate it with a string like: and I set the CCK: Media format to a default value of SWFtools in the migrate content set.

The migrate works great, and the field will correctly show either the audio or video player as per my settings for swftools. But, If I decide that I must edit the node (like change the title), the "Media" field shows no data, and if I make the edit of the title and save, the resulting page has lost the mulitmedia.

Have I chosen the wrong way to do this? All 3500+ media files stay in place in /sites/default/files/clipper/, and I don't want to have to always upload them.

Comments

vrteach’s picture

Oops, where I say "the string looks like" should show:

<swf file="clipper/3578.mp3">

It got stripped out because I didn't enclose it in code tags.

mikeryan’s picture

Status: Active » Postponed (maintainer needs more info)

I can't see how it relates to migration, since everything's fine after migration.

Have you checked the input format for that field? It may be stripping the <swf> tag...

vrteach’s picture

Status: Postponed (maintainer needs more info) » Closed (fixed)

I think that this is indeed the problem. Changing my pre-migrate script to write the file info with square brackets instead of angle brackets seems to fix it.

I didn't think that I was seeing a problem with the migrate project, but rather a "gotcha" with the migrate progress. I'll see if I can make a case study for the documentation. I've been making substantial use of this module, and I couldn't have met a deadline without it.

I think this can be closed.