verbb / vizy

A flexible visual editor for Craft CMS
Other
43 stars 8 forks source link

Way to migrate html from old site to new site with vizy fields #142

Open RaphaelVidal opened 2 years ago

RaphaelVidal commented 2 years ago

What are you trying to do? We need to migrate html contents from Redactor Plugin (old site) to vizy (new site), but if i try to save directly from back-end, it doesn't work. Probaly because vizy expect a json (in vizy format).

What's your proposed solution? Create a functionality to receive html and then transform in json to vizy.

Additional context image

engram-design commented 2 years ago

Have you tried using Feed Me, which supports Vizy fields? The only trick is that it doesn't support mapping to Vizy blocks, just the WYSIWYG content.

If you wanted a more manual approach, you could use the HTML source button to add in HTML, which would then convert to block-data.

CleanShot 2022-05-18 at 09 46 47

mattbloomfield commented 2 years ago

+1 to using Feed Me for this - we just migrated a big site this way into Vizy and it worked with very few edge cases.

engram-design commented 1 year ago

We'll be adding some helpers to assist with converting HTML to Prosemirror schema (the JSON we use to store content), so make converting much less of a headache, and not needing to rely on Feed Me.

RaphaelVidal commented 1 year ago

Thank you @engram-design.