seo icon indicating copy to clipboard operation
seo copied to clipboard

Default social image & project config

Open nstCactus opened this issue 6 years ago • 1 comments

Description

I have 4 environments: local development (the only one on which I make configuration changes), review, preproduction & production. I use project config to keep their configurations is sync. When I try to set the global default social image, or the default social image for a given SEO field, project-config stores the id of the asset I chose.

This cannot work across environments because there is no guarantee that the content will be the same (ie: the asset having id 19345 I chose as the default social image in my development environment may not be the same or may not even exist in the other environments).

Craft CMS faced a similar issue with the images used to rebrand the login form and the header logo. The solution they came up with is to avoid treating these images as assets but use whatever image is in the storage/rebrand/icon & storage/rebrand/logo directories as the site icon & login form logo respectively.

  • Craft version: 3.3.13
  • SEO version: 3.6.2
  • PHP version: 7.2
  • Database driver & version: not relevant
  • Other Plugins: not relevant

nstCactus avatar Oct 25 '19 08:10 nstCactus

Also see https://github.com/ethercreative/seo/issues/243

ClemensSchneider avatar Nov 04 '19 08:11 ClemensSchneider