You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if we add these as empty arrays the errors stop appearing, but then content blocks disappear from the CMS. I assume this is also the case with repeaters.
Also looks like icons don't actually show up in the CMS, even though they get listed using php artisan twill:list:icons
and the icons can be seen when previewing in /admin/admin/icons
phyce
changed the title
Adding Custom paths in config/twill.php without repeaters and blocks section
Adding Custom icon paths in config/twill.php without repeaters and blocks section
Feb 16, 2025
At the moment when trying to add block_editor.directories.source.icons as explained in https://twillcms.com/docs/block-editor/creating-a-block-editor.html#content-using-custom-icons is not possible without defining 'repeaters' and 'blocks'.
if we add these as empty arrays the errors stop appearing, but then content blocks disappear from the CMS. I assume this is also the case with repeaters.
Current workaround I found is by copying the default configuration for both repeaters and blocks as provided in:
https://twillcms.com/docs/block-editor/default-configuration.html
Steps to reproduce
define config/twill.php as following:
Expected result
Config should work without needing 'repeaters' or 'blocks'.
Actual result
We get the following error:
foreach() argument must be of type array|object, null given
Versions
Twill 3.4.1
Laravel 11.41.3
PHP 8.2.27
MariaDB 11.6
The text was updated successfully, but these errors were encountered: