Created
September 30, 2016 07:56
-
-
Save lamenath/110c6e805b5ecf134fea484c71d43940 to your computer and use it in GitHub Desktop.
Repeatable Page Custom Type for Sample Website
This file contains hidden or 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
{ | |
"Main" : { | |
"uid" : { | |
"type" : "UID", | |
"config" : { | |
"placeholder" : "meaningful-unique-identifier...", | |
"label" : "Unique ID" | |
} | |
}, | |
"body" : { | |
"type" : "Slices", | |
"fieldset" : "Page content", | |
"config" : { | |
"labels" : { | |
"textSection" : [ { | |
"name" : "1col", | |
"display" : "1 Column" | |
}, { | |
"name" : "2col", | |
"display" : "2 Columns" | |
} ] | |
}, | |
"choices" : { | |
"heading" : { | |
"type" : "StructuredText", | |
"fieldset" : "Section Heading", | |
"config" : { | |
"placeholder" : "Text...", | |
"single" : "heading1, heading2, heading3" | |
} | |
}, | |
"textSection" : { | |
"type" : "StructuredText", | |
"fieldset" : "Text Section", | |
"config" : { | |
"placeholder" : "Text...", | |
"labels" : [ "quote" ] | |
} | |
}, | |
"fullWidthImage" : { | |
"type" : "Image", | |
"fieldset" : "Full Width Image", | |
"config" : { | |
"constraint" : { | |
"width" : 980, | |
"height" : 300 | |
} | |
} | |
}, | |
"highlight" : { | |
"type" : "Group", | |
"fieldset" : "Highlight", | |
"config" : { | |
"repeat" : false, | |
"fields" : { | |
"title" : { | |
"type" : "StructuredText", | |
"config" : { | |
"placeholder" : "Highlight Title", | |
"single" : "heading2" | |
} | |
}, | |
"headline" : { | |
"type" : "StructuredText", | |
"config" : { | |
"placeholder" : "Highlight Headline", | |
"single" : "heading3" | |
} | |
}, | |
"link" : { | |
"type" : "Link", | |
"fieldset" : "Optional Link", | |
"config" : { | |
"placeholder" : "Optional Link" | |
} | |
}, | |
"linkText" : { | |
"type" : "Text", | |
"config" : { | |
"placeholder" : "Optional Link Text" | |
} | |
}, | |
"image" : { | |
"type" : "Image", | |
"config" : { | |
"constraint" : { | |
"width" : 727, | |
"height" : 402 | |
} | |
} | |
} | |
} | |
} | |
}, | |
"gallery" : { | |
"type" : "Group", | |
"fieldset" : "Image Gallery", | |
"config" : { | |
"repeat" : true, | |
"fields" : { | |
"image" : { | |
"type" : "Image", | |
"config" : { | |
"placeholder" : "Image", | |
"constraint" : { | |
"width" : 727, | |
"height" : 402 | |
} | |
} | |
}, | |
"description" : { | |
"type" : "StructuredText", | |
"config" : { | |
"placeholder" : "Image Description...", | |
"single" : "paragraph" | |
} | |
}, | |
"link" : { | |
"type" : "Link", | |
"fieldset" : "Optional Link", | |
"config" : { | |
"placeholder" : "Optional Link" | |
} | |
}, | |
"linkText" : { | |
"type" : "Text", | |
"config" : { | |
"placeholder" : "Optional Link Text" | |
} | |
} | |
} | |
} | |
} | |
} | |
} | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment