Active
Project:
Field Copy
Version:
5.x-5.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
18 Nov 2008 at 06:47 UTC
Updated:
6 Feb 2009 at 04:56 UTC
this module is great this is exactly what i needed but is it possible that it should not only allow copy with the same field type but also for different types of field?
Please help me.. it would help me lot if it is possible..
Thanks so much
Comments
Comment #1
regx commentedThis is possible, but it becomes a lot more complicated because of the widgets involved and also data of one type is not necessarily appropriate for another type.
I had a similar problem recently where I needed to convert a large amount of text fields to money formatted decimal fields. In my instance field copy wouldn't work because it would have taken a lot of time to make all of the target fields.
I think what I need to do is add field transform support, or maybe that should be a separate module all together.
Basically I see it working like this.
Select the fields to transform, and select the target field type.
All of the fields selected for transformation will become the same data type as the target field with same widget etc, but preserve the data.
Obviously there would be instances where preserving the data would not be possible. If mysql can hold the current data in the new column type then it would work.
We could add some intelligent filtering as well such via regular expressions to do things like strip non_numeric data if the new column type is a float or int.
Your thoughts?
Comment #2
markrei commentedYah i do get your points and thanks for the help but how can i add field transform support? Honestly I'm new in Drupal is it a module or a Php code? Unfortunately I just know the basic coding in Php. I hope you could help me.
Thank you very much..
Comment #3
regx commentedCurrently there is not a module I know of to transform cck fields from one type to another. I have had to do it often, and am thinking this module could use transform functionality. The discussion above was a theoretical discussion about what might or might not be possible and the direction this module should take.