There should be a way to convert cck fields to the body or someother sensible default, not discard which could be a disaster.

CommentFileSizeAuthor
#15 node_convert-node-body-00.patch2.47 KBsmokris

Comments

alcroito’s picture

Status: Active » Fixed

Thanks, fixed in DEV.

alcroito’s picture

Status: Fixed » Needs work

Oops, wrong issue. Still brainstorming on this one.

Anonymous’s picture

i also think it would be a great feature to have the node->body as an options to convert textfields to.

igorik’s picture

subscribe, will be great to have predefined converst for various fields for various contenttype combinations.

ChaToXXX’s picture

subscribe, I am converting from another node type to blog, and I need to move one of the fields to the body of the node

TimG1’s picture

Subscribing. I'm converting a node type w/body field into a CCK text field of a node type that has no body field.

alcroito’s picture

Status: Needs work » Fixed

Added basic appending and replacement of body with chosen fields to DEV. Currently tested only with simple text fields. So textfield, textarea, numbers should basically work.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

garbo’s picture

converting a cck-field to the body doesn't work for me.
At the original content-type the body-field was disabled. At the new content-type the body-field is available.
The contents of a cck-field in the original content-type need to be stored into the body-field of the new content-type. But this doesn't happen.
I tried using the replace function as well as the append function.

Do you know why this is going wrong?

lonehorseend’s picture

Status: Closed (fixed) » Active

I'm reopening this issue because of #9 and my own reverse problem. My orgin source has a body field but in my destination one does not. It still converts but the information is put in the hidden (removed the body title in CCK) body field.

igorik’s picture

Category: feature » bug

imho this doesn't work in any way
node content textarea->cck field; nor cck text field -> node content textarea

hixster’s picture

Any news on this - need to convert a body field to a cck.

garbo’s picture

@hixter
Your safest approach is:
1. exporting your nodes with node_export (as CSV).
2. Altering the CSV so that the contents of the body field are now in the column for the CCK field.
3. re-importing the nodes as the new content-type.
4. unpublishing or deleting the old nodes.

Hope this helps you.

hixster’s picture

thanks garbo, i'll give that a try.

smokris’s picture

Version: 6.x-1.5 » 6.x-1.x-dev
Status: Active » Needs review
StatusFileSize
new2.47 KB

Attached is a patch which allows converting the source node body to a destination CCK text field.

stewest’s picture

Subscribing.... Any news on this being put in next release? Need this exact functionality

stewest’s picture

Issue summary: View changes
Status: Needs review » Closed (outdated)