Cms: Adjust width of fields belonging to a fieldset in CP

Created on 22 Nov 2019  路  11Comments  路  Source: statamic/cms

The width of a field in a Blueprint can be adjusted, but I could not find that option for fields belongig to a fieldset. Should this be available in the CP as well? (If I add the widths in the fieldset yaml, it麓s respected correctly.)

not a bug

Most helpful comment

In the next release, the width selector is available in the fieldset editor and the blueprint editor without needing to expand the section.

All 11 comments

That's on purpose as the Blueprint is the one that controls the layout and order, and Fieldsets are intended for reusable groups of fields. On the Blueprint level you can override any "imported" field and so on. It just so happens that because of the way the data is assembled between the two, manually setting the width in the Fieldset _does_ work.

Does that make sense?

I did not say it麓s a bug, only noticed I could not adjust the fields anywhere in CP. I thought that maybe a Blueprint would control the widths, but I did not find it. Example: A contact-info fieldset with 'phone', 'mobile' and 'email' and you want each to be 33%. Where do you do that (besides in the file)?

In a blueprint section, if you expand it (the button at the top right), you will be able to adjust the widths.

image
image

This could definitely be clearer.

Thanks Jason, I did find that, but it does not work for the fieldsets (fields).

Right, you can't set the widths in the CP for fields in a _fieldset_. But you can in Blueprints. I was just addressing where you said this:

I thought that maybe a Blueprint would control the widths, but I did not find it.

So if I have the blueprint with

  • Company
  • Contacts (field set)

    • phone

    • mobile

    • mail

I can only adjust the width of those three contact fields in the field set file, correct?

No, you can adjust the widths in the Blueprint UI.

Send you a screenshot if I have the site back. No worries for now, seems it麓s just me.

Okay you're right there's no way to adjust those widths when you import an entire fieldset.

If you were to import the fields individually, you could.

I guess we can add the width selector thingy to fieldsets too.

Thanks, feeling a bit better now for not overlooking something. Not a big thing, but would be convenient.

In the next release, the width selector is available in the fieldset editor and the blueprint editor without needing to expand the section.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ReneWeCode picture ReneWeCode  路  3Comments

sauerbraten picture sauerbraten  路  3Comments

jimblue picture jimblue  路  3Comments

wm-simon picture wm-simon  路  3Comments

jelleroorda picture jelleroorda  路  3Comments