For those of you who waited until after updating to Drupal 5 to convert your flexinodes to CCK's, here's a port of Flexiconvert to 5.x.

The same warnings apply, but I've used this to successfully port over a very simple flexinode type.

Comments

mcarbone’s picture

StatusFileSize
new107 bytes

A .info file to use with this. I had to append .patch to upload the file, so make sure you rename it from flexiconvert.patch.info to flexiconvert.info.

mcarbone’s picture

StatusFileSize
new8.27 KB

Here's a new patch. I've added the ability to convert 'url' and 'image' types (and made some trivial changes to conform to Drupal coding standards).

I've used this successfully on a production site, but all the same warnings apply.

starbow’s picture

Wow, very cool. I will review this and post it after the Drupal Summit.

ejort’s picture

I've seperated the new fields portion of this patch from the 5.x specific bits in the Include image, url and file fields in conversion issue. It also includes a file field.

quicksketch’s picture

Fantastic! Applied this patch and gave it a shot on my Drupal 5.1, CCK 1.4 install. Some notes:

- Will correctly port flexinode "url" type fields to CCK "link" type fields
- Will not correctly port any field of type "multiple" or used by more than one type
- Does not clear the CCK cache in Drupal 5, so it doesn't look like anything has happened

This patch should include

  cache_clear_all(NULL, 'cache_content');

after conversion completes.

starbow’s picture

Status: Needs review » Fixed

I have applied this patch and rolled out a 5.x-dev branch

Anonymous’s picture

Status: Fixed » Closed (fixed)
liquidcms’s picture

the 4.7 flexiconvert didn't handle "widgets" such as select list text fields... any chance this one does.

noid’s picture

Version: 4.7.x-1.x-dev » 5.x-0.2
Category: task » support
Priority: Normal » Critical
Status: Closed (fixed) » Active

Guys,

Can you help me out with my problem -- http://drupal.org/node/206623 -- I may need the 5.0 fix after all because I might not have saved a proper 4.7 database backup. Thanks in advance!

mo6’s picture

Version: 5.x-0.2 » 4.7.x-1.x-dev
Category: support » task
Priority: Critical » Normal
Status: Active » Closed (fixed)

noid, please don't hijack this issue. Thanks.