Module works with simple fields, but not with multi fields, Integration with paragraph module looks a solution.

Comments

lomasr created an issue. See original summary.

el1_1el’s picture

Status: Active » Needs work

at 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?

lomasr’s picture

I tested it with the paragraph module, looks like it requires more development than a change in bundle index.

Will look into it deeper.
Thanks

el1_1el’s picture

Assigned: Unassigned » el1_1el
Status: Needs work » Needs review
StatusFileSize
new2.08 KB

i 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

  • el1_1el committed be2571a on 8.x-1.x
    Issue #2890032 by el1_1el: Integration with Paragraph module for multi...
lomasr’s picture

Thanks for adding the patch, I will test the patch and add my comment.

lomasr’s picture

StatusFileSize
new111.14 KB

Applied the patch, it worked cleanly. But it didnt copied the paragrah field values to body field.

el1_1el’s picture

Status: Needs review » Needs work

Ah ok. I only tested copying from one paragraph to another. That will require a lot more work...

el1_1el’s picture

Status: Needs work » Closed (outdated)

This module has been converted to convert_bundles.