StoutLogic / acf-builder

An Advanced Custom Field Configuration Builder
GNU General Public License v2.0
794 stars 62 forks source link

ACF Extended Compatible? #173

Open louiswalch opened 1 year ago

louiswalch commented 1 year ago

Hi, is this compatible with the additional options, configurations and fields in ACF Extended? https://www.acf-extended.com/

Log1x commented 1 year ago

Yes. You will have to export JSON/PHP or code dive to find out what keys/fields are called, though. Most are prefixed with acfe_.

EHLOVader commented 1 year ago

I was wondering about this and if there was a place to find this in documentation or elsewhere. The best I could find was that their code seems to define defaults for each of their custom fields.

https://github.com/search?q=repo%3Aacf-extended%2FACF-Extended++%24this-%3Edefaults&type=code&p=2

So you might be able to use this search result to find the settings keys and the custom field type name needed to configure the fields from ACF Builder directly.

louiswalch commented 1 year ago

I've just gone into native ACF, create the field and set ACF/ACFE settings, then export the field group as PHP. The output will give you all the options you need to place in your ->addWhatever call for ACF Builder. It's a little annoying at first, but afterwards you can just copy/paste then for future uses. Really just a matter of figuring out what all the acfe settings are.

Once you get over that, ACF Builder is a awsome tool. Really saves a ton of the initial effort in getting a site set up.

For Example: ->addFlexibleContent('modules', [ 'label'=>'', 'button_label'=>'Add Content', 'acfe_flexible_stylised_button'=>1, 'acfe_flexible_layouts_thumbnails'=>1, 'acfe_flexible_remove_button'=>'duplicate', 'acfe_flexible_modal'=>[ 'acfe_flexible_modal_enabled'=>1, 'acfe_flexible_modal_title'=>'Add Content', 'acfe_flexible_modal_size'=>'large', 'acfe_flexible_modal_col'=>4, 'acfe_flexible_modal_categories'=>0 ] ])

TimAtTeamlemke commented 4 months ago

If you're using Log1x ACF-Composer you can also set acfe defaults for specific field types:

'fieldGroup' => ['instruction_placement' => 'acfe_instructions_tooltip'],
'repeater' => ['layout' => 'block', 'acfe_repeater_stylised_button' => 1, 'wpml_cf_preferences' => 1],
'group' => ['layout' => 'block', 'acfe_group_modal' => 0],

I also found a few available settings by searching on GitHub I'm missing a developers documentation too