Closed (fixed)
Project:
Views Bulk Operations (VBO)
Version:
6.x-1.9
Component:
Core
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
2 Mar 2010 at 08:21 UTC
Updated:
17 Aug 2011 at 23:24 UTC
What I need is something similar to #516560: Doesn't bulk edit CCK fields with PHP. But instead of copying to CCK only, is there anyway I can copy from a CCK field to Body field?
I made a stupid mistake last two years to use cck field_text to store the main content instead of body field. Thus, I'm thinking of transferring the content to body field now.
Actually, Field Copy http://drupal.org/project/field_copy is pretty much the function that I want but I have 40,000 nodes need to copy to body field. My server does not have sufficient memory to perform the action on all the nodes in one batch.
Any one can help me out please?
Comments
Comment #1
infojunkieUse the following PHP code with the action "Execute arbitrary PHP script":
Make sure to replace
field_textwith the actual machine name of your field, which you can find on the CCK manage fields page. Also make sure to set the VBO execution setting to "Use Batch API" to avoid timeout.Hope that helps!
Comment #2
seakayjay commentedThat's Cool! it works like a charm. thank you so much, infojunkie. it helps me a lot.
Comment #3
zazinteractive commentedMy nodes don't display the body field as a teaser after using this. What can I do?
Comment #4
stacysimpson commented@zazinteractive, we ran into the same thing and had to set the following attributes as well.