Skip to content

Instantly share code, notes, and snippets.

@faresd
Created August 27, 2015 14:44
Show Gist options
  • Save faresd/87cd721b71fbd62f84a9 to your computer and use it in GitHub Desktop.
Save faresd/87cd721b71fbd62f84a9 to your computer and use it in GitHub Desktop.
Page document mask
{
"Content" : {
"body" : {
"fieldset" : "Dynamic page zone...",
"type" : "Slices",
"config" : {
"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"
}
}
}
}
},
"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...",
"multi" : "paragraph"
}
}
}
}
},
"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"
}
}
}
}
}
}
}
}
},
"Metadata" : {
"uid" : {
"type" : "UID",
"config" : {
"placeholder" : "unique-identifier-for-page-url"
}
},
"title" : {
"type" : "StructuredText",
"config" : {
"single" : "heading1",
"placeholder" : "Page meta title"
}
},
"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