Im trying use two field groups inside a tab. My tab blueprint looks like this:
label: Social Media
icon: globe
fields:
socialfallback:
label: Social Fallback Images
type: headline
extend: socialfallback
logos:
label: Logo Images
type: headline
extend: logo
However, the panel is rendering the fields inside the extended logo under the “Social Fallback Images”, and ignoring extend: socialfallback
. It seems to take the last declared extend, renders it where the first one was declared, and then ignores all other extends.
I know the field groups work, since they do if I use them individually.
Bug?
But nothing at all shows up if i fix that. The path isnt needed as these are coming from a plugin and its set to load without the folder name.
label: Social Media
icon: globe
fields:
socialfallback:
label: Social Fallback Images
type: headline
extends: socialfallback
logos:
label: Logo Images
type: headline
extends: logo
The tab im also loading it into is in the same plugin too…
'blueprints' => [
// TABS
'tabs/publishing' => __DIR__ . '/blueprints/tabs/publishing.yml',
'tabs/seo' => __DIR__ . '/blueprints/tabs/seo.yml',
'tabs/socialmedia' => __DIR__ . '/blueprints/tabs/socialmedia.yml',
'tabs/content' => __DIR__ . '/blueprints/tabs/content.yml',
'tabs/sitefiles' => __DIR__ . '/blueprints/tabs/sitefiles.yml',
// FIELDS
'settings' => __DIR__ . '/blueprints/fields/settings.yml',
'logo' => __DIR__ . '/blueprints/fields/logo.yml',
'socialfallback' => __DIR__ . '/blueprints/fields/socialfallback.yml',
],
Ahhh… needs the key above it…
socialfallback:
label: Social Fallback Images
type: headline
socialfiles:
extends: socialfallback
logos:
label: Logo Images
type: headline
logofiles:
extends: logo