fix: use Field for photos in article detail view (Collection can't be TextField)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Simon Kuehn 2026-05-18 11:15:53 +00:00
parent ed0caea344
commit 14eab1ab5c

View file

@ -143,7 +143,7 @@ final class ArticleCrudController extends AbstractCrudController
->allowAdd(false) ->allowAdd(false)
->allowDelete(false); ->allowDelete(false);
yield TextField::new('photos', new TranslatableMessage('field.photos', [], 'admin')) yield Field::new('photos', new TranslatableMessage('field.photos', [], 'admin'))
->setTemplatePath('admin/field/photos.html.twig') ->setTemplatePath('admin/field/photos.html.twig')
->onlyOnDetail(); ->onlyOnDetail();
} }