@ecomplus/storefront-template
Version:
Reusable & upgradable views and scripts for E-Com Plus storefront
33 lines (32 loc) • 753 B
JavaScript
export default ({ baseDir }) => ({
name: 'social',
file: `${baseDir}content/social.json`,
label: 'Sociais',
hint: 'Configurações para compartilhamento da loja',
fields: [
{
label: 'Open Graphs Image',
name: 'og_image',
required: false,
widget: 'image',
media_library: {
config: {
max_file_size: Math.max(window.CMS_MAX_FILE_SIZE || 0, 1000000)
}
},
hint: 'Imagem que é exibida quando o site é compartilhado'
},
{
label: 'ID do app Facebook',
name: 'fb_app_id',
required: false,
widget: 'string'
},
{
label: 'Username do twitter',
name: 'twitter_username',
required: false,
widget: 'string'
}
]
})