Last active
September 17, 2015 20:31
-
-
Save lamenath/c9516b1ae966981588b0 to your computer and use it in GitHub Desktop.
example for a prismic.io page mask using slices type
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"Content" : { | |
"title" : { | |
"type" : "StructuredText", | |
"config" : { | |
"single" : "heading1", | |
"placeholder" : "Page title" | |
} | |
}, | |
"uid" : { | |
"type" : "UID", | |
"config" : { | |
"placeholder" : "unique-identifier-for-page-url" | |
} | |
}, | |
"body" : { | |
"fieldset" : "Dynamic page zone...", | |
"type" : "Slices", | |
"config" : { | |
"placeholder" : "Add a Content Slice", | |
"labels" : { | |
"alternated-highlights" : [ { | |
"name" : "full", | |
"display" : "Full featured" | |
}, { | |
"name" : "round", | |
"display" : "Rounded" | |
} ], | |
"featured-items" : [ { | |
"name" : "mini", | |
"display" : "Mini" | |
}, { | |
"name" : "preview", | |
"display" : "With preview" | |
}, { | |
"name" : "simple", | |
"display" : "Simple" | |
} ], | |
"slides" : [ { | |
"name" : "small", | |
"display" : "Small" | |
}, { | |
"name" : "medium", | |
"display" : "Medium" | |
} ], | |
"faq" : [ { | |
"display" : "1 column", | |
"name" : "col-1" | |
}, { | |
"display" : "2 columns", | |
"name" : "col-2" | |
} ], | |
"section-header" : [ { | |
"display" : "2 columns", | |
"name" : "section-header-col-2" | |
}, { | |
"display" : "3 columns", | |
"name" : "section-header-col-3" | |
}, { | |
"display" : "Centered", | |
"name" : "section-header-centered" | |
}, { | |
"display" : "Centered 2 columns", | |
"name" : "section-header-col-2-centered" | |
}, { | |
"display" : "Centered 3 columns", | |
"name" : "section-header-col-3-centered" | |
} ], | |
"text" : [ { | |
"display" : "2 columns", | |
"name" : "text-col-2" | |
}, { | |
"display" : "3 columns", | |
"name" : "text-col-3" | |
}, { | |
"display" : "Centered", | |
"name" : "text-centered" | |
}, { | |
"display" : "Centered 2 columns", | |
"name" : "text-col-2-centered" | |
}, { | |
"display" : "Centered 3 columns", | |
"name" : "text-col-3-centered" | |
} ], | |
"separator" : [ { | |
"name" : "small", | |
"display" : "Small" | |
}, { | |
"name" : "medium", | |
"display" : "Medium" | |
} ] | |
}, | |
"choices" : { | |
"alternated-highlights" : { | |
"type" : "Group", | |
"fieldset" : "Alternated highlights", | |
"config" : { | |
"fields" : { | |
"illustration" : { | |
"type" : "Image", | |
"config" : { | |
"constraint" : { | |
"width" : 1400, | |
"height" : 800 | |
} | |
} | |
}, | |
"title" : { | |
"type" : "StructuredText", | |
"config" : { | |
"placeholder" : "Item title...", | |
"single" : "heading3" | |
} | |
}, | |
"summary" : { | |
"type" : "StructuredText", | |
"fieldset" : "Short Summary", | |
"config" : { | |
"placeholder" : "Item summary...", | |
"single" : "paragraph" | |
} | |
}, | |
"read-more" : { | |
"type" : "Link", | |
"config" : { | |
"placeholder" : "Button link..." | |
} | |
}, | |
"read-more-label" : { | |
"type" : "StructuredText", | |
"config" : { | |
"placeholder" : "Button label...", | |
"single" : "paragraph" | |
} | |
} | |
} | |
} | |
}, | |
"featured-items" : { | |
"type" : "Group", | |
"fieldset" : "Featured items", | |
"config" : { | |
"fields" : { | |
"illustration" : { | |
"type" : "Image", | |
"config" : { | |
"constraint" : { | |
"height" : 1200 | |
}, | |
"thumbnails" : [ { | |
"name" : "Icon", | |
"width" : 300, | |
"height" : 300 | |
} ] | |
} | |
}, | |
"title" : { | |
"type" : "StructuredText", | |
"config" : { | |
"single" : "heading3", | |
"placeholder" : "Item title..." | |
} | |
}, | |
"summary" : { | |
"type" : "StructuredText", | |
"fieldset" : "Short Summary", | |
"config" : { | |
"placeholder" : "Item summary...", | |
"single" : "paragraph" | |
} | |
}, | |
"read-more" : { | |
"type" : "Link", | |
"config" : { | |
"placeholder" : "Button link..." | |
} | |
}, | |
"read-more-label" : { | |
"type" : "StructuredText", | |
"config" : { | |
"placeholder" : "Link label...", | |
"single" : "paragraph" | |
} | |
} | |
} | |
} | |
}, | |
"slides" : { | |
"type" : "Group", | |
"fieldset" : "Slides", | |
"config" : { | |
"fields" : { | |
"illustration" : { | |
"type" : "Image" | |
}, | |
"title" : { | |
"type" : "StructuredText", | |
"config" : { | |
"placeholder" : "Slide title...", | |
"multi" : "heading1,heading2" | |
} | |
}, | |
"summary" : { | |
"type" : "StructuredText", | |
"config" : { | |
"placeholder" : "Short Summary..." | |
} | |
}, | |
"read-more" : { | |
"type" : "Link", | |
"config" : { | |
"placeholder" : "Button link" | |
} | |
}, | |
"read-more-label" : { | |
"type" : "StructuredText", | |
"config" : { | |
"placeholder" : "Button label...", | |
"single" : "paragraph" | |
} | |
} | |
} | |
} | |
}, | |
"video-header" : { | |
"type" : "Group", | |
"fieldset" : "Video Slide", | |
"config" : { | |
"fields" : { | |
"title" : { | |
"type" : "StructuredText", | |
"config" : { | |
"placeholder" : "Video slide title...", | |
"multi" : "heading1,heading2" | |
} | |
}, | |
"summary" : { | |
"type" : "StructuredText", | |
"config" : { | |
"placeholder" : "Short Summary..." | |
} | |
}, | |
"video-url" : { | |
"type" : "Text", | |
"config" : { | |
"placeholder" : "video URL (vimeo, youtube)" | |
} | |
}, | |
"read-more" : { | |
"type" : "Link", | |
"config" : { | |
"placeholder" : "Button link" | |
} | |
}, | |
"read-more-label" : { | |
"type" : "StructuredText", | |
"config" : { | |
"placeholder" : "Button label...", | |
"single" : "paragraph" | |
} | |
} | |
} | |
} | |
}, | |
"section-header" : { | |
"type" : "Group", | |
"fieldset" : "Section Header", | |
"config" : { | |
"repeat" : false, | |
"fields" : { | |
"title" : { | |
"type" : "StructuredText", | |
"config" : { | |
"placeholder" : "Section name...", | |
"single" : "heading2" | |
} | |
}, | |
"summary" : { | |
"type" : "StructuredText", | |
"config" : { | |
"placeholder" : "Section summary...", | |
"single" : "paragraph" | |
} | |
} | |
} | |
} | |
}, | |
"text" : { | |
"type" : "Group", | |
"fieldset" : "Text", | |
"config" : { | |
"repeat" : false, | |
"fields" : { | |
"content" : { | |
"type" : "StructuredText", | |
"config" : { | |
"placeholder" : "Start typing..." | |
} | |
} | |
} | |
} | |
}, | |
"separator" : { | |
"type" : "Group", | |
"fieldset" : "Separator", | |
"config" : { | |
"repeat" : false, | |
"fields" : { | |
"sep" : { | |
"type" : "Separator" | |
} | |
} | |
} | |
}, | |
"contact-us" : { | |
"type" : "Group", | |
"fieldset" : "Contact us", | |
"config" : { | |
"repeat" : false, | |
"fields" : { | |
"mailto" : { | |
"type" : "Text", | |
"config" : { | |
"label" : "Mail to" | |
} | |
}, | |
"email-label" : { | |
"type" : "Text", | |
"config" : { | |
"label" : "Email label" | |
} | |
}, | |
"subject-label" : { | |
"type" : "Text", | |
"config" : { | |
"label" : "Subject label" | |
} | |
}, | |
"message-label" : { | |
"type" : "Text", | |
"config" : { | |
"label" : "Message label" | |
} | |
}, | |
"button-label" : { | |
"type" : "Text", | |
"config" : { | |
"label" : "Button label" | |
} | |
}, | |
"success-label" : { | |
"type" : "Text", | |
"config" : { | |
"label" : "Success message" | |
} | |
}, | |
"error-label" : { | |
"type" : "Text", | |
"config" : { | |
"label" : "Error message" | |
} | |
}, | |
"address" : { | |
"type" : "Text", | |
"fieldset" : "Address", | |
"config" : { | |
"label" : "Street address" | |
} | |
} | |
} | |
} | |
}, | |
"faq" : { | |
"type" : "Group", | |
"fieldset" : "FAQ", | |
"config" : { | |
"fields" : { | |
"question" : { | |
"type" : "StructuredText", | |
"config" : { | |
"placeholder" : "Question...", | |
"single" : "heading3" | |
} | |
}, | |
"answer" : { | |
"type" : "StructuredText", | |
"config" : { | |
"placeholder" : "Answer...", | |
"multi" : "paragraph" | |
} | |
} | |
} | |
} | |
} | |
} | |
} | |
} | |
}, | |
"Social Cards" : { | |
"social" : { | |
"fieldset" : "Add Specific Options...", | |
"type" : "Slices", | |
"config" : { | |
"choices" : { | |
"general_card" : { | |
"type" : "Group", | |
"fieldset" : "General social card", | |
"config" : { | |
"repeat" : false, | |
"fields" : { | |
"card_title" : { | |
"type" : "Text", | |
"config" : { | |
"label" : "Title" | |
} | |
}, | |
"card_description" : { | |
"type" : "Text", | |
"config" : { | |
"label" : "Description" | |
} | |
}, | |
"card_image" : { | |
"type" : "Image", | |
"config" : { | |
"placeholder" : "Social Card image..." | |
} | |
} | |
} | |
} | |
}, | |
"product_card" : { | |
"type" : "Group", | |
"fieldset" : "Product social card", | |
"config" : { | |
"repeat" : false, | |
"fields" : { | |
"card_title" : { | |
"type" : "Text", | |
"config" : { | |
"label" : "Title" | |
} | |
}, | |
"card_description" : { | |
"type" : "Text", | |
"config" : { | |
"label" : "Description" | |
} | |
}, | |
"card_amount" : { | |
"type" : "Number", | |
"config" : { | |
"label" : "Amount" | |
} | |
}, | |
"card_currency" : { | |
"type" : "Text", | |
"config" : { | |
"label" : "Currency" | |
} | |
}, | |
"card_image0" : { | |
"type" : "Image", | |
"config" : { | |
"placeholder" : "Social Card image..." | |
} | |
}, | |
"card_image1" : { | |
"type" : "Image", | |
"config" : { | |
"placeholder" : "Social Card image..." | |
} | |
}, | |
"card_image2" : { | |
"type" : "Image", | |
"config" : { | |
"placeholder" : "Social Card image..." | |
} | |
}, | |
"card_image3" : { | |
"type" : "Image", | |
"config" : { | |
"placeholder" : "Social Card image..." | |
} | |
}, | |
"card_image4" : { | |
"type" : "Image", | |
"config" : { | |
"placeholder" : "Social Card image..." | |
} | |
}, | |
"card_image5" : { | |
"type" : "Image", | |
"config" : { | |
"placeholder" : "Social Card image..." | |
} | |
} | |
} | |
} | |
}, | |
"place_card" : { | |
"type" : "Group", | |
"fieldset" : "Place social card", | |
"config" : { | |
"repeat" : false, | |
"fields" : { | |
"card_title" : { | |
"type" : "Text", | |
"config" : { | |
"label" : "Title" | |
} | |
}, | |
"card_description" : { | |
"type" : "Text", | |
"config" : { | |
"label" : "Description" | |
} | |
}, | |
"card_longitude" : { | |
"type" : "Number", | |
"config" : { | |
"label" : "Longitude" | |
} | |
}, | |
"card_latitude" : { | |
"type" : "Number", | |
"config" : { | |
"label" : "Latitude" | |
} | |
}, | |
"card_image" : { | |
"type" : "Image", | |
"config" : { | |
"placeholder" : "Social Card image..." | |
} | |
} | |
} | |
} | |
}, | |
"email" : { | |
"type" : "Group", | |
"fieldset" : "Email", | |
"config" : { | |
"repeat" : false, | |
"fields" : { | |
"card_title" : { | |
"type" : "Text", | |
"config" : { | |
"label" : "Subject" | |
} | |
}, | |
"card_description" : { | |
"type" : "Text", | |
"config" : { | |
"label" : "Message Content" | |
} | |
} | |
} | |
} | |
}, | |
"twitter_summary" : { | |
"type" : "Group", | |
"fieldset" : "Twitter Summary", | |
"config" : { | |
"repeat" : false, | |
"fields" : { | |
"card_title" : { | |
"type" : "Text", | |
"config" : { | |
"label" : "Title" | |
} | |
}, | |
"card_description" : { | |
"type" : "Text", | |
"config" : { | |
"label" : "Description" | |
} | |
}, | |
"twitter_site" : { | |
"type" : "Text", | |
"config" : { | |
"label" : "twitter:site", | |
"placeholder" : "@username for the website used in the card footer" | |
} | |
}, | |
"twitter_creator" : { | |
"type" : "Text", | |
"config" : { | |
"label" : "twitter:creator", | |
"placeholder" : "@username for the content creator / author" | |
} | |
}, | |
"card_image" : { | |
"type" : "Image", | |
"config" : { | |
"placeholder" : "Social Card image..." | |
} | |
} | |
} | |
} | |
}, | |
"twitter_summary_large" : { | |
"type" : "Group", | |
"fieldset" : "Twitter Summary Large Image", | |
"config" : { | |
"repeat" : false, | |
"fields" : { | |
"card_title" : { | |
"type" : "Text", | |
"config" : { | |
"label" : "Title" | |
} | |
}, | |
"card_description" : { | |
"type" : "Text", | |
"config" : { | |
"label" : "Description" | |
} | |
}, | |
"twitter_site" : { | |
"type" : "Text", | |
"config" : { | |
"label" : "twitter:site", | |
"placeholder" : "@username for the website used in the card footer" | |
} | |
}, | |
"twitter_creator" : { | |
"type" : "Text", | |
"config" : { | |
"label" : "twitter:creator", | |
"placeholder" : "@username for the content creator / author" | |
} | |
}, | |
"card_image" : { | |
"type" : "Image", | |
"config" : { | |
"placeholder" : "Social Card image..." | |
} | |
} | |
} | |
} | |
}, | |
"twitter_app" : { | |
"type" : "Group", | |
"fieldset" : "Twitter App", | |
"config" : { | |
"repeat" : false, | |
"fields" : { | |
"card_description" : { | |
"type" : "Text", | |
"config" : { | |
"label" : "Description" | |
} | |
}, | |
"twitter_site" : { | |
"type" : "Text", | |
"config" : { | |
"label" : "Username", | |
"placeholder" : "@username for the website used in the card footer" | |
} | |
}, | |
"app_country" : { | |
"type" : "Text", | |
"config" : { | |
"label" : "Country", | |
"placeholder" : "Region of this App (US, FR ...)" | |
} | |
}, | |
"iphone_name" : { | |
"type" : "Text", | |
"fieldset" : "Iphone", | |
"config" : { | |
"label" : "Iphone - Name", | |
"placeholder" : "Name" | |
} | |
}, | |
"iphone_id" : { | |
"type" : "Text", | |
"config" : { | |
"label" : "Iphone - ID", | |
"placeholder" : "App ID" | |
} | |
}, | |
"iphone_url" : { | |
"type" : "Text", | |
"config" : { | |
"label" : "Iphone - URL", | |
"placeholder" : "App URL" | |
} | |
}, | |
"ipad_name" : { | |
"type" : "Text", | |
"config" : { | |
"label" : "Ipad - Name", | |
"placeholder" : "Name" | |
} | |
}, | |
"ipad_id" : { | |
"type" : "Text", | |
"config" : { | |
"label" : "Ipad - ID", | |
"placeholder" : "App ID" | |
} | |
}, | |
"ipad_url" : { | |
"type" : "Text", | |
"config" : { | |
"label" : "Ipad - URL", | |
"placeholder" : "App URL" | |
} | |
}, | |
"android_name" : { | |
"type" : "Text", | |
"config" : { | |
"label" : "Android - Name", | |
"placeholder" : "Name" | |
} | |
}, | |
"android_id" : { | |
"type" : "Text", | |
"config" : { | |
"label" : "Android - ID", | |
"placeholder" : "App ID" | |
} | |
}, | |
"android_url" : { | |
"type" : "Text", | |
"config" : { | |
"label" : "Android - URL", | |
"placeholder" : "App URL" | |
} | |
} | |
} | |
} | |
}, | |
"twitter_player" : { | |
"type" : "Group", | |
"fieldset" : "Twitter Player", | |
"config" : { | |
"repeat" : false, | |
"fields" : { | |
"card_title" : { | |
"type" : "Text", | |
"config" : { | |
"label" : "Title" | |
} | |
}, | |
"card_description" : { | |
"type" : "Text", | |
"config" : { | |
"label" : "Description" | |
} | |
}, | |
"twitter_site" : { | |
"type" : "Text", | |
"config" : { | |
"label" : "Twitter user", | |
"placeholder" : "@username for the website used in the card footer" | |
} | |
}, | |
"card_image" : { | |
"type" : "Image", | |
"config" : { | |
"placeholder" : "Preview Image..." | |
} | |
}, | |
"video_url" : { | |
"type" : "Text", | |
"config" : { | |
"label" : "Video URL (must be mp4 format)" | |
} | |
} | |
} | |
} | |
} | |
} | |
} | |
} | |
}, | |
"Metadata" : { | |
"children" : { | |
"fieldset" : "Child pages (used for the menu and URL hierarchy", | |
"type" : "Group", | |
"config" : { | |
"fields" : { | |
"label" : { | |
"type" : "Text", | |
"config" : { | |
"placeholder" : "Link label" | |
} | |
}, | |
"link" : { | |
"type" : "Link", | |
"config" : { | |
"select" : "document", | |
"masks" : [ "page", "bloghome" ] | |
} | |
} | |
} | |
} | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment