0

Sonata default use for list index:

SonataAdminBundle:CRUD:list.html.twig

This i use for all modules in Admin. I have modules: Job and Category. How can i set for module Job for example:

SonataAdminBundle:CRUD:listJob.html.twig

and for Category:

SonataAdminBundle:CRUD:listCategory.html.twig
Elnur Abdurrakhimov
  • 44,533
  • 10
  • 148
  • 133

1 Answers1

1

You can change the default list index by adding the mehode in CategoryAdmin and JobAdmin

public function  getListTemplate ()
{
    return "SonataAdminBundle:CRUD:listJob.html.twig";
}
a.aitboudad
  • 4,026
  • 23
  • 31