Skip to content

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

@J3r3mV

Description

@J3r3mV

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions