cms icon indicating copy to clipboard operation
cms copied to clipboard

[6.x] No way of appending config fields with a section title

Open ryanmitchell opened this issue 5 months ago • 0 comments

Bug description

With the new layout there is now no way to append a config field that has a section title... compare:

Image

The 'A/B test' is a new field, but it looks lonely without a nice section heading.

When I append a config field to a select input it gets worse, as it gets bundled with other fields:

Image

How to reproduce

        Text::appendConfigField('my_field', [
            'type' => 'toggle',
            'display' => __('My Field'),
            'default' => true,
        ]);

Logs


Environment

Environment
Application Name: Statamic
Laravel Version: 12.33.0
PHP Version: 8.4.11
Composer Version: 2.8.10
Environment: local
Debug Mode: ENABLED
URL: statamic6.test
Maintenance Mode: OFF
Timezone: UTC
Locale: en

Cache
Config: NOT CACHED
Events: NOT CACHED
Routes: NOT CACHED
Views: CACHED

Drivers
Broadcasting: log
Cache: redis
Database: sqlite
Logs: stack / single
Mail: log
Queue: sync
Session: file

Storage
public/storage: NOT LINKED

Statamic
Addons: 2
Sites: 1
Stache Watcher: Enabled (auto)
Static Caching: ab
Version: 6.0.0-alpha.11 PRO

Installation

Fresh statamic/statamic site via CLI

Additional details

No response

ryanmitchell avatar Oct 13 '25 10:10 ryanmitchell