Skip to content

Instantly share code, notes, and snippets.

@lamenath
Created May 14, 2021 13:52
Show Gist options
  • Save lamenath/d94654de0c9d0cfb6cba2a1270366f66 to your computer and use it in GitHub Desktop.
Save lamenath/d94654de0c9d0cfb6cba2a1270366f66 to your computer and use it in GitHub Desktop.
Prismic Custom type for Product Storytelling Enrichment
{
"Main" : {
"product_name" : {
"type" : "Text",
"config" : {
"label" : "Product name",
"placeholder" : "Product name"
}
},
"uid" : {
"type" : "UID",
"config" : {
"label" : "UID",
"placeholder" : "UID"
}
},
"product_pim_mapping" : {
"type" : "IntegrationFields",
"config" : {
"catalog" : "csvjson--catalog",
"label" : "Product PIM mapping",
"placeholder" : "Product PIM mapping"
}
},
"body" : {
"type" : "Slices",
"fieldset" : "Product Storytelling Enrichment",
"config" : {
"labels" : { },
"choices" : {
"full_width_image" : {
"type" : "Slice",
"fieldset" : "Full Width Image",
"description" : "A wide, thin image",
"icon" : "broken_image",
"non-repeat" : {
"image" : {
"type" : "Image",
"config" : {
"constraint" : {
"width" : null,
"height" : null
},
"thumbnails" : [ ],
"label" : "Image"
}
}
},
"repeat" : { }
},
"full_width_carrousel" : {
"type" : "Slice",
"fieldset" : "Full width carrousel",
"description" : "Carrousel with full-width image",
"icon" : "panorama_wide_angle",
"display" : "list",
"non-repeat" : { },
"repeat" : {
"image" : {
"type" : "Image",
"config" : {
"constraint" : { },
"thumbnails" : [ ],
"label" : "Image"
}
},
"slide_title" : {
"type" : "StructuredText",
"config" : {
"single" : "heading2",
"label" : "Slide title",
"placeholder" : "Slide title"
}
},
"slide_description" : {
"type" : "StructuredText",
"config" : {
"single" : "paragraph",
"label" : "Slide description",
"placeholder" : "Slide description"
}
},
"link" : {
"type" : "Link",
"config" : {
"select" : "document",
"label" : "Link",
"placeholder" : "Link"
}
}
}
},
"image___description___cta" : {
"type" : "Slice",
"fieldset" : "Image + Description + CTA",
"description" : "Image + Description + CTA",
"icon" : "mouse",
"display" : "list",
"non-repeat" : {
"title" : {
"type" : "StructuredText",
"config" : {
"single" : "heading1",
"label" : "Title",
"placeholder" : "Title"
}
}
},
"repeat" : {
"image" : {
"type" : "Image",
"config" : {
"constraint" : { },
"thumbnails" : [ ],
"label" : "Image"
}
},
"card_title" : {
"type" : "StructuredText",
"config" : {
"single" : "heading2",
"label" : "Card title",
"placeholder" : "Card title"
}
}
}
}
}
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment