Skip to content

Instantly share code, notes, and snippets.

@lamenath
Last active August 29, 2015 14:24
Show Gist options
  • Save lamenath/e93448900dc129ee7d88 to your computer and use it in GitHub Desktop.
Save lamenath/e93448900dc129ee7d88 to your computer and use it in GitHub Desktop.
Social Cards Tab for prismic.io Document Mask
"Social Cards" : {
"social_cards_enabled" : {
"type" : "Select",
"fieldset" : "Social Sharing",
"config" : {
"placeholder" : "Disable",
"label" : "Enable Social Buttons",
"options" : [ "Enable" ]
}
},
"social" : {
"fieldset" : "Custom Social Cards...",
"type" : "Slices",
"config" : {
"choices" : {
"general_card" : {
"type" : "Group",
"fieldset" : "General Card",
"config" : {
"repeat" : false,
"fields" : {
"card_title" : {
"type" : "Text",
"config" : {
"label" : "Title"
}
},
"card_description" : {
"type" : "Text",
"config" : {
"label" : "Description"
}
},
"card_image" : {
"type" : "Image",
"config" : {
"placeholder" : "Image"
}
}
}
}
},
"product_card" : {
"type" : "Group",
"fieldset" : "Product Card",
"config" : {
"repeat" : false,
"fields" : {
"card_title" : {
"type" : "Text",
"config" : {
"label" : "Title"
}
},
"card_description" : {
"type" : "Text",
"config" : {
"label" : "Description"
}
},
"card_amount" : {
"type" : "Number",
"config" : {
"label" : "Amount"
}
},
"card_currency" : {
"type" : "Text",
"config" : {
"label" : "Currency"
}
},
"card_image0" : {
"type" : "Image",
"config" : {
"placeholder" : "Gallery Image"
}
},
"card_image1" : {
"type" : "Image",
"config" : {
"placeholder" : "Gallery Image"
}
},
"card_image2" : {
"type" : "Image",
"config" : {
"placeholder" : "Gallery Image"
}
},
"card_image3" : {
"type" : "Image",
"config" : {
"placeholder" : "Gallery Image"
}
},
"card_image4" : {
"type" : "Image",
"config" : {
"placeholder" : "Gallery Image"
}
},
"card_image5" : {
"type" : "Image",
"config" : {
"placeholder" : "Gallery Image"
}
}
}
}
},
"place_card" : {
"type" : "Group",
"fieldset" : "Place Card",
"config" : {
"repeat" : false,
"fields" : {
"card_title" : {
"type" : "Text",
"config" : {
"label" : "Title"
}
},
"card_description" : {
"type" : "Text",
"config" : {
"label" : "Description"
}
},
"coordinates" : {
"type" : "GeoPoint"
},
"card_image" : {
"type" : "Image",
"config" : {
"placeholder" : "Image"
}
}
}
}
},
"email" : {
"type" : "Group",
"fieldset" : "Email",
"config" : {
"repeat" : false,
"fields" : {
"card_title" : {
"type" : "Text",
"config" : {
"label" : "Subject"
}
},
"card_description" : {
"type" : "Text",
"config" : {
"label" : "Message Content"
}
}
}
}
},
"twitter_summary" : {
"type" : "Group",
"fieldset" : "Twitter Summary",
"config" : {
"repeat" : false,
"fields" : {
"card_title" : {
"type" : "Text",
"config" : {
"label" : "Title"
}
},
"card_description" : {
"type" : "Text",
"config" : {
"label" : "Description"
}
},
"twitter_site" : {
"type" : "Text",
"config" : {
"label" : "Website",
"placeholder" : "The Twitter @username the card should be attributed to."
}
},
"card_image" : {
"type" : "Image",
"config" : {
"placeholder" : "Image"
}
}
}
}
},
"twitter_summary_large" : {
"type" : "Group",
"fieldset" : "Twitter Summary Large Image",
"config" : {
"repeat" : false,
"fields" : {
"card_title" : {
"type" : "Text",
"config" : {
"label" : "Title"
}
},
"card_description" : {
"type" : "Text",
"config" : {
"label" : "Description"
}
},
"twitter_site" : {
"type" : "Text",
"config" : {
"label" : "Website",
"placeholder" : "The Twitter @username the card should be attributed to."
}
},
"twitter_creator" : {
"type" : "Text",
"config" : {
"label" : "Creator",
"placeholder" : "The Twitter @username of the content creator / author."
}
},
"card_image" : {
"type" : "Image",
"config" : {
"placeholder" : "Image"
}
}
}
}
},
"twitter_app" : {
"type" : "Group",
"fieldset" : "Twitter App",
"config" : {
"repeat" : false,
"fields" : {
"card_description" : {
"type" : "Text",
"config" : {
"label" : "Description"
}
},
"twitter_site" : {
"type" : "Text",
"config" : {
"label" : "Username",
"placeholder" : "The Twitter @username the card should be attributed to."
}
},
"app_country" : {
"type" : "Text",
"config" : {
"label" : "Country",
"placeholder" : "Region of this App (US, FR ...)"
}
},
"iphone_name" : {
"type" : "Text",
"fieldset" : "iPhone",
"config" : {
"label" : "iPhone - Name",
"placeholder" : "Name"
}
},
"iphone_id" : {
"type" : "Text",
"config" : {
"label" : "iPhone - ID",
"placeholder" : "App ID"
}
},
"iphone_url" : {
"type" : "Text",
"config" : {
"label" : "iPhone - URL",
"placeholder" : "App URL"
}
},
"ipad_name" : {
"type" : "Text",
"config" : {
"label" : "iPad - Name",
"placeholder" : "Name"
}
},
"ipad_id" : {
"type" : "Text",
"config" : {
"label" : "iPad - ID",
"placeholder" : "App ID"
}
},
"ipad_url" : {
"type" : "Text",
"config" : {
"label" : "iPad - URL",
"placeholder" : "App URL"
}
},
"android_name" : {
"type" : "Text",
"config" : {
"label" : "Android - Name",
"placeholder" : "Name"
}
},
"android_id" : {
"type" : "Text",
"config" : {
"label" : "Android - ID",
"placeholder" : "App ID"
}
},
"android_url" : {
"type" : "Text",
"config" : {
"label" : "Android - URL",
"placeholder" : "App URL"
}
}
}
}
}
}
}
}
}
@lamenath
Copy link
Author

Paste this at the tab level of your document mask to allow content writers to customize the Social Sharing Cards content (Twitter, Facebook, LinkedIn, Pinterest cards).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment