Bring Slices from SliceMachine slices to Prismic

Hey there online,

This is a good question, and you’re on the right track. To import the JSON, simply copy it from /model.json. Then, in the JSON editor in the custom type builder, in “choices”, create a new key with the snake_cased name for your slice, and paste in the JSON from /model.json as the value.

Note: the name of your slice in Prismic must be the snake_cased version of the PascalCased name in your code in order for the slice-zone component to properly match them.

Let me know if that works for you.

Sam

1 Like