diff --git a/resources/fieldsets/globals_seo_social_defaults.yaml b/resources/fieldsets/globals_seo_social_defaults.yaml index d004b10..d5715ed 100644 --- a/resources/fieldsets/globals_seo_social_defaults.yaml +++ b/resources/fieldsets/globals_seo_social_defaults.yaml @@ -1,25 +1,37 @@ -title: 'Globals SEO: Social Sharing - Generate Social Images' +title: 'Globals SEO: Social Sharing - Defaults' fields: - - handle: use_social_image_generation - field: - display: 'Use Social Images generation' - type: toggle - icon: toggle - instructions: 'Enable Social Image generation. **Important**: you need to have Puppeteer and Browsershot installed.' + handle: og_image + field: common.image + config: + container: social_images + localizable: true + listable: hidden + display: 'Social image' instructions_position: below + instructions: 'The default OG image. Can be overridden per entry. The recommended size is 1200px x 630px. This image will be focal cropped to this dimension.' + width: 50 + - + handle: twitter_image + field: common.image + config: + container: social_images + localizable: true listable: hidden + display: 'Twitter image' + instructions_position: below + instructions: 'The default Twitter image. Can be overridden per entry. Images should have an aspect ratio of 2:1 with minimum dimensions of 300x157. This image will be focal cropped to this dimension.' width: 50 - - handle: social_images_collections + handle: twitter_handle field: - mode: select - display: 'Collections with Social Images' - type: collections - icon: collections - instructions: 'Chosen collections will show a _Generate Social Images_ button in the collections overview.' - instructions_position: below listable: hidden + display: 'Twitter handle' width: 50 - if: - use_social_image_generation: 'equals true' + input_type: text + type: text + localizable: true + instructions: 'The Twitter user name that should be included with Twitter Card tags.' + instructions_position: below + prepend: '@' + antlers: false diff --git a/resources/fieldsets/globals_seo_social_generate_social_images.yaml b/resources/fieldsets/globals_seo_social_generate_social_images.yaml index d5715ed..d004b10 100644 --- a/resources/fieldsets/globals_seo_social_generate_social_images.yaml +++ b/resources/fieldsets/globals_seo_social_generate_social_images.yaml @@ -1,37 +1,25 @@ -title: 'Globals SEO: Social Sharing - Defaults' +title: 'Globals SEO: Social Sharing - Generate Social Images' fields: - - handle: og_image - field: common.image - config: - container: social_images - localizable: true - listable: hidden - display: 'Social image' + handle: use_social_image_generation + field: + display: 'Use Social Images generation' + type: toggle + icon: toggle + instructions: 'Enable Social Image generation. **Important**: you need to have Puppeteer and Browsershot installed.' instructions_position: below - instructions: 'The default OG image. Can be overridden per entry. The recommended size is 1200px x 630px. This image will be focal cropped to this dimension.' - width: 50 - - - handle: twitter_image - field: common.image - config: - container: social_images - localizable: true listable: hidden - display: 'Twitter image' - instructions_position: below - instructions: 'The default Twitter image. Can be overridden per entry. Images should have an aspect ratio of 2:1 with minimum dimensions of 300x157. This image will be focal cropped to this dimension.' width: 50 - - handle: twitter_handle + handle: social_images_collections field: + mode: select + display: 'Collections with Social Images' + type: collections + icon: collections + instructions: 'Chosen collections will show a _Generate Social Images_ button in the collections overview.' + instructions_position: below listable: hidden - display: 'Twitter handle' width: 50 - input_type: text - type: text - localizable: true - instructions: 'The Twitter user name that should be included with Twitter Card tags.' - instructions_position: below - prepend: '@' - antlers: false + if: + use_social_image_generation: 'equals true'