Skip to content

[6.x] Allow multi-column config layout in user globals - #14994

Merged
jasonvarga merged 6 commits into
statamic:6.xfrom
daun:feature/globals-as-config
Aug 17, 2026
Merged

[6.x] Allow multi-column config layout in user globals#14994
jasonvarga merged 6 commits into
statamic:6.xfrom
daun:feature/globals-as-config

Conversation

@daun

@daundaun commented Jul 13, 2026

Copy link
Copy Markdown
Contributor

Enable the as-config prop though a new Layout Mode setting on the Global Set Config. Very useful for settings-type screens to save vertical space. Currently, they are only available to the core and addons (via PublishForm::make()->asConfig()).

Closesstatamic/ideas#1470

Usage

# content/globals/settings.yaml
title: Settings
layout_mode: multi_column

Example

Screenshot 2026-07-10 at 11 56 57

@jasonvarga

jasonvarga commented Aug 14, 2026

Copy link
Copy Markdown
Member

@jackmcdade This one requires a call from you first. Is this something we even want to support? Or do you want to keep the alternate layout for just config?

And if yes, why only globals? We could probably easily allow you to opt into this layout for entries, terms, etc.

cc @jaygeorge

@jackmcdade

Copy link
Copy Markdown
Member

@jasonvarga I'm gonna pull it across all the areas and see how it feels. I would lean towards not doing it, but sometimes I do feel like I'd like alt layouts for certain types of content... Let's see where this goes. 🤘

@jackmcdade

Copy link
Copy Markdown
Member

Okay so I really like this, but ONLY for Globals. It makes Entries and Terms look ridiculous. I'm gonna wire up a CP UI to toggle it on and off per-global set, do a once over on the PR, and then I say let's merge it. Thanks @daun!

@daun

daun commented Aug 14, 2026

Copy link
Copy Markdown
ContributorAuthor

Nice. I like that it's becoming much more sophisticated now, fancy UI toggles and all :) Great stuff!

@jasonvarga
jasonvarga merged commit e3cc23e into statamic:6.xAug 17, 2026
61 checks passed
@daun
daun deleted the feature/globals-as-config branch August 19, 2026 11:18
@RyanRoberts

RyanRoberts commented Aug 21, 2026

Copy link
Copy Markdown

I've just been trying this out. For all but one of my globals it looks very broken. Perhaps it would be more useful on the field Section level rather than the entire Global? Just a suggestion.
2026-08-21 at 12 26 53@2x
2026-08-21 at 12 26 14@2x

With the right kind of fields it does look very nice though.
2026-08-21 at 12 25 26@2x

@daun

daun commented Aug 21, 2026

Copy link
Copy Markdown
ContributorAuthor

@RyanRoberts The first one is a great case for full_width_setting: true. That will make this single field span the whole width. The second one happens because you're probably hiding the display label on the field. Unsetting hide_display should fix that too.

@RyanRoberts

Copy link
Copy Markdown

@daun Thanks for the tip! I've used that on both fields and it looks much better. I'm liking this, good work 😄

Sign up for freeto 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.

Option to enable the multi-column config view for user globals

4 participants

@daun@jasonvarga@jackmcdade@RyanRoberts