How i can make 2 admins for one entity in Sonata Admin? For example - one admin shows a list with "status=1"
condition, and other with "status=2".
it would be great if make a new record in first admin automatically sets the "status=1".
Thx.
1) create a one admin class in ADMIN Directory with Your condition status=1
2) create a second admin class in ADMIN Directory with Your condition status=2
3) config that class in sonata_admin.yaml with different name
4) change in second admin $baseRouteName
and $baseRoutePattern
to different
In which Entity name is same
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.