Skip to content

Instantly share code, notes, and snippets.

@przeor
Created January 23, 2014 09:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save przeor/8575581 to your computer and use it in GitHub Desktop.
Save przeor/8575581 to your computer and use it in GitHub Desktop.
{
"_id" : ObjectId("52de6f60e02208603ea67dea"),
"collection" : "components",
"fields" : [
{
"label" : "Title",
"field" : "title",
"type" : "text",
"required" : true
},
{
"label" : "Description",
"field" : "description",
"type" : "html",
"required" : false
},
{
"label" : "Other Metadata",
"field" : "otherMetadata",
"type" : "html",
"required" : false
},
{
"label" : "Type",
"field" : "type",
"type" : "text",
"required" : true
},
{
"field" : "articles",
"label" : "Articles",
"type" : "nested",
"fields" : [
{
"required" : true,
"type" : "text",
"label" : "Title",
"field" : "title"
},
{
"required" : true,
"type" : "text",
"label" : "Class",
"field" : "class"
},
{
"required" : true,
"type" : "nested",
"label" : "Sections",
"field" : "sections",
"maxCount" : 3,
"minCount" : 3,
"fields" : [
{
"type" : "text",
"label" : "Title",
"field" : "title",
"required" : true
},
{
"type" : "text",
"label" : "Class",
"field" : "class",
"required" : true
},
{
"required" : true,
"type" : "nested",
"label" : "Subsections",
"field" : "subsections",
"fields" : [
{
"type" : "text",
"field" : "text",
"label" : "Text",
"required" : false
},
{
"type" : "text",
"field" : "explanation",
"label" : "Explanation",
"required" : false
},
{
"type" : "text",
"field" : "class",
"label" : "Class",
"required" : false
}
]
}
]
}
]
}
],
"templateHtml" : "template/toc.html",
"templateName" : "toc"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment