Closed (outdated)
Project:
Convert Nodes
Version:
8.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Reporter:
Created:
27 Jun 2017 at 16:24 UTC
Updated:
12 Jun 2018 at 12:34 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
el1_1el commentedat first glance it looks like youd only have to change the bundle index in the node__[field_name] and node_revision__[field_name] tables to convert from one content type to another, which is what happens in ConvertNodes::convertFieldTables.
Creating a paragraph as a new field would probably be more complicated though.
Have you tried it?
Comment #3
lomasr commentedI tested it with the paragraph module, looks like it requires more development than a change in bundle index.
Will look into it deeper.
Thanks
Comment #4
el1_1el commentedi think this patch should work for both paragraphs and office hours (or other non standard fields). patch attached but will go ahead and commit. let me know if it works for you also
Comment #6
lomasr commentedThanks for adding the patch, I will test the patch and add my comment.
Comment #7
lomasr commentedApplied the patch, it worked cleanly. But it didnt copied the paragrah field values to body field.
Comment #8
el1_1el commentedAh ok. I only tested copying from one paragraph to another. That will require a lot more work...
Comment #9
el1_1el commentedThis module has been converted to convert_bundles.