Skip to content

[6.x] Add option for addons to opt-out of config layouts for settings#12869

Closed
duncanmcclean wants to merge 1 commit intomasterfrom
addon-settings-layout
Closed

[6.x] Add option for addons to opt-out of config layouts for settings#12869
duncanmcclean wants to merge 1 commit intomasterfrom
addon-settings-layout

Conversation

@duncanmcclean
Copy link
Copy Markdown
Member

@duncanmcclean duncanmcclean commented Oct 25, 2025

Addon Settings publish forms currently use the "config" (50 / 50) layout for displaying fields.

While we aim for all configuration & settings pages to use the config layout, this PR adds an option for addons to opt-out and use the "content" layout instead (the layout used on entries, terms, etc) if it better suits their use case:

// src/ServiceProvider.php

public function bootAddon()
{
    $this->useContentLayoutForSettings();
}

Closes #12810

@duncanmcclean duncanmcclean linked an issue Oct 25, 2025 that may be closed by this pull request
@jasonvarga
Copy link
Copy Markdown
Member

This might be good to have, but the issue described in #12810 feels like a bug. The config field layout should only be applied to fields at the top level.

@duncanmcclean
Copy link
Copy Markdown
Member Author

This might be good to have, but the issue described in #12810 feels like a bug. The config field layout should only be applied to fields at the top level.

Makes sense! I've opened #12882 to address this.

@jasonvarga jasonvarga closed this Oct 30, 2025
@duncanmcclean duncanmcclean deleted the addon-settings-layout branch October 31, 2025 09:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[6.x] Addon settings field layout not ideal for Replicator

2 participants