Skip to content

Instantly share code, notes, and snippets.

@faresd
Created November 23, 2015 15:24
Show Gist options
  • Save faresd/71bef955dfd8c43bc927 to your computer and use it in GitHub Desktop.
Save faresd/71bef955dfd8c43bc927 to your computer and use it in GitHub Desktop.
Page Custom Type for documentation
{
"Content" : {
"body" : {
"fieldset" : "Dynamic page zone...",
"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",
"config" : {
"placeholder" : "Button link..."
}
},
"read-more-label" : {
"type" : "StructuredText",
"config" : {
"placeholder" : "Link label...",
"single" : "paragraph"
}
}
}
}
},
"faq" : {
"type" : "Group",
"fieldset" : "FAQ",
"config" : {
"fields" : {
"question" : {
"type" : "StructuredText",
"config" : {
"placeholder" : "Question...",
"single" : "heading3"
}
},
"answer" : {
"type" : "StructuredText",
"config" : {
"placeholder" : "Answer...",
"multi" : "paragraph"
}
}
}
}
},
"text" : {
"type" : "Group",
"fieldset" : "Text",
"config" : {
"repeat" : false,
"fields" : {
"content" : {
"type" : "StructuredText",
"config" : {
"placeholder" : "Start typing...",
"multi" : "paragraph"
}
}
}
}
}
}
}
}
},
"Metadata" : {
"uid" : {
"type" : "UID",
"config" : {
"placeholder" : "unique-identifier-for-page-url"
}
},
"title" : {
"type" : "StructuredText",
"config" : {
"single" : "heading1",
"placeholder" : "Page meta title"
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment