flexiconvert.module port to 5.x
mcarbone - March 1, 2007 - 03:29
| Project: | Flexinode to CCK Converter |
| Version: | 4.7.x-1.x-dev |
| Component: | Code |
| Category: | task |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed |
Description
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.
| Attachment | Size |
|---|---|
| flexiconvert.patch | 2.19 KB |

#1
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.
#2
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.
#3
Wow, very cool. I will review this and post it after the Drupal Summit.
#4
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.
#5
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
<?phpcache_clear_all(NULL, 'cache_content');
?>
after conversion completes.
#6
I have applied this patch and rolled out a 5.x-dev branch
#7
#8
the 4.7 flexiconvert didn't handle "widgets" such as select list text fields... any chance this one does.
#9
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!
#10
noid, please don't hijack this issue. Thanks.