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:
parent
ed0caea344
commit
14eab1ab5c
1 changed files with 1 additions and 1 deletions
|
|
@ -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();
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue