Log1x / acf-composer

Compose ACF Fields, Blocks, Widgets, and Option Pages with ACF Builder on Sage 10.
https://github.com/Log1x/acf-composer
MIT License
414 stars 56 forks source link

Allow to control Field Group Settings #119

Closed adminazhar closed 2 years ago

adminazhar commented 2 years ago

After creating Fields using ACF GUI, there is option to control the Location. But with acf-composer there is no option to control the Field Group Settings. I wanted to change the label placement of the Field Group, but couldn't find any way to do it using acf-composer.

Is there anything i am missing, or currently acf-composer doesn't support Field Group Settings(Label Placement, Hide on Screen, Menu Order).

image

In official ACF Documentation is there a way to do it: https://www.advancedcustomfields.com/resources/register-fields-via-php/

image

adminazhar commented 2 years ago

Got it working by using defaults: config/acf.php 'fieldGroup' => ['label_placement' => 'left']

Log1x commented 2 years ago

Pass an array to FieldsBuilder():

$example = new FieldsBuilder('example', ['label_placement' => 'left']);

should work.

adminazhar commented 2 years ago

Pass an array to FieldsBuilder():

$example = new FieldsBuilder('example', ['label_placement' => 'left']);

should work.

Thanks. Closing the issue.