Skip to content

Instantly share code, notes, and snippets.

@Duaner
Created May 10, 2017 14:01
Show Gist options
  • Save Duaner/837be2a17fc8dfac9700ae66efa69420 to your computer and use it in GitHub Desktop.
Save Duaner/837be2a17fc8dfac9700ae66efa69420 to your computer and use it in GitHub Desktop.
{
"Blog Post" : {
"body" : {
"type" : "StructuredText",
"config" : {
"placeholder" : "Start writing your blog post here...",
"minHeight" : "400px",
"imageConstraint" : {
"width" : 640.0
}
}
}
},
"Metadata" : {
"shortlede" : {
"fieldset" : "Short lede (~15 words)",
"type" : "StructuredText",
"config" : {
"single" : "paragraph",
"placeholder" : "The shortest catcher to your topic"
}
},
"image" : {
"fieldset" : "Main image",
"type" : "Image",
"config" : {
"constraint" : {
"width" : 800.0
},
"thumbnails" : [ {
"name" : "Icon",
"width" : 100.0,
"height" : 100.0
}, {
"name" : "Column",
"width" : 320.0
}, {
"name" : "Wide",
"width" : 600.0,
"height" : 300.0
} ]
}
},
"author" : {
"fieldset" : "Author",
"type" : "Link",
"config" : {
"select" : "document",
"masks" : [ "author" ]
}
},
"date" : {
"fieldset" : "Post properties",
"type" : "Date",
"config" : {
"label" : "Post date"
}
},
"category" : {
"type" : "Select",
"config" : {
"label" : "Category",
"options" : [ "Announcements", "Do it yourself", "Behind the scenes" ]
}
},
"allow_comments" : {
"type" : "Select",
"config" : {
"label" : "Allow comments",
"options" : [ "Yes", "No" ]
}
},
"relatedpost[0]" : {
"fieldset" : "Related posts",
"type" : "Link",
"config" : {
"placeholder" : "Related post #1",
"select" : "document",
"masks" : [ "blog" ]
}
},
"relatedpost[1]" : {
"type" : "Link",
"config" : {
"placeholder" : "Related post #2",
"select" : "document",
"masks" : [ "blog" ]
}
},
"relatedproduct[0]" : {
"fieldset" : "Related products",
"type" : "Link",
"config" : {
"placeholder" : "Related product #1",
"select" : "document",
"masks" : [ "product" ]
}
},
"relatedproduct[1]" : {
"type" : "Link",
"config" : {
"placeholder" : "Related product #2",
"select" : "document",
"masks" : [ "product" ]
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment