Skip to content

Instantly share code, notes, and snippets.

@lamenath
Last active August 29, 2015 14:22
Show Gist options
  • Save lamenath/c5abe7a791ed5d1d0992 to your computer and use it in GitHub Desktop.
Save lamenath/c5abe7a791ed5d1d0992 to your computer and use it in GitHub Desktop.
Configuring a single Slice choice
{
"Main" : {
"title" : {
"fieldset" : "Title...",
"type" : "StructuredText",
"config" : {
"placeholder" : "Type the document's title here",
"single" : "heading1"
}
}
},
"Content" : {
"body" : {
"fieldset" : "Choose a Content Slice...",
"type" : "Slices",
"config" : {
"choices" : {
"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",
"fieldset" : "Link to read more",
"config" : {
"select" : "document",
"masks" : [ "page" ],
"placeholder" : "Select a Read More page"
}
},
"read-more-label" : {
"type" : "StructuredText",
"config" : {
"placeholder" : "Read more label"
}
}
}
}
}
}
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment