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
398 stars 53 forks source link

Custom Field Type Aliases within Repeaters #219

Closed mike-sheppard closed 4 months ago

mike-sheppard commented 4 months ago

Hey @Log1x, sorry for pestering -this should be the last one hopefully. 🤞

Looks like the custom aliases throw an error in Repeater fields.

Error

No such function: endRepeater

2024-02-29 1444 - Arc

Example

$block->addAccordion('illustration_links')
    ->addRepeater('links')
-        ->addField('text_color', 'editor_palette')
+        ->addEditorPalette('text_color')
-        ->addField('background_color', 'editor_palette')
+        ->addEditorPalette('background_color')
    ->endRepeater()
;
Log1x commented 4 months ago

no sorry needed. let me know if you stumble across anything else.

mike-sheppard commented 4 months ago

perfecto! 👌 All working well my side (medium-ish sized project with a fair amount of fields), thanks again! 🙏