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.

AttachmentSize
flexiconvert.patch2.19 KB

#1

mcarbone - March 1, 2007 - 03:35

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.

AttachmentSize
flexiconvert.info_.patch107 bytes

#2

mcarbone - March 16, 2007 - 18:45

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.

AttachmentSize
flexiconvert1.patch8.27 KB

#3

starbow - March 19, 2007 - 04:49

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

#4

ejort - March 23, 2007 - 02:36

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

quicksketch - April 2, 2007 - 02:17

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

<?php
  cache_clear_all
(NULL, 'cache_content');
?>

after conversion completes.

#6

starbow - April 2, 2007 - 21:37
Status:patch (code needs review)» fixed

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

#7

Anonymous - April 16, 2007 - 21:46
Status:fixed» closed

#8

liquidcms - August 3, 2007 - 09:24

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

#9

noid - January 5, 2008 - 22:33
Version:4.7.x-1.x-dev» 5.x-0.2
Category:task» support request
Priority:normal» critical
Status:closed» 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!

#10

george@dynapres.nl - August 19, 2008 - 14:31
Version:5.x-0.2» 4.7.x-1.x-dev
Category:support request» task
Priority:critical» normal
Status:active» closed

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

 
 

Drupal is a registered trademark of Dries Buytaert.