seo icon indicating copy to clipboard operation
seo copied to clipboard

og:image not filled when field type is imagelist

Open thecb1 opened this issue 5 years ago • 1 comments

findImageHelper() does not pick up imagelist-fields.

thecb1 avatar Apr 03 '19 09:04 thecb1

https://github.com/bobdenotter/seo/blob/56bc088de99802fd8e85bbecd7464a5b4844f3f8/src/SEO.php#L352-L355

Could be fixed with

        } elseif ($field['type'] == 'imagelist') {
            if($imageField === null){
                $imageField = $this->record->values[$fieldname];
            }
            if (isset($imageField[0]['filename'])) {
                $image = $imageField[0]['filename'];
            }

thecb1 avatar Apr 03 '19 09:04 thecb1