Thanks to visit codestin.com
Credit goes to github.com

Skip to content

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

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

Closed
J3r3mV opened this issue Apr 12, 2024 · 4 comments
Closed

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

J3r3mV opened this issue Apr 12, 2024 · 4 comments
Labels

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

@carsonbot
Copy link
Collaborator

Thank you for this issue.
There has not been a lot of activity here for a while. Has this been resolved?

@carsonbot
Copy link
Collaborator

Just a quick reminder to make a comment on this. If I don't hear anything I'll close this.

@carsonbot
Copy link
Collaborator

Hey,

I didn't hear anything so I'm going to close it. Feel free to comment if this is still relevant, I can always reopen!

@carsonbot carsonbot closed this as not planned Won't fix, can't repro, duplicate, stale May 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants