Skip to content

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

@ryanmitchell

Description

@ryanmitchell

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions