Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Book for Symfony 6 -> Setting up an Admin Backend -> onlyOnIndex() #19782

Open
J3r3mV opened this issue Apr 12, 2024 · 1 comment
Open

Book for Symfony 6 -> Setting up an Admin Backend -> onlyOnIndex() #19782

J3r3mV opened this issue Apr 12, 2024 · 1 comment

Comments

@J3r3mV
Copy link

J3r3mV commented Apr 12, 2024

Hello community,

In the code of : https://symfony.com/doc/6.2/the-fast-track/en/9-backend.html#customizing-easyadmin

The following code:

yield TextField::new('photoFilename')
             ->onlyOnIndex()
         ;

Prevents the possibility of entering the 'photoFilename' when creating and editing comments, I don't think that was intended ?! Otherwise how could we complete it ?

I had to remove ->onlyOnIndex() to have the right!

@OskarStark
Copy link
Contributor

friendly ping @fabpot

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants