Provide a parameter for a custom template in SonataAdmin fields

25 views
Skip to first unread message

ma...@lamarciana.com

unread,
Dec 19, 2012, 12:46:39 PM12/19/12
to sonata...@googlegroups.com

I know how to set a custom template for a field in SonataAdminBundle, for example:

    ->add('parent', null, null, 'template' => 'NS:Admin/CRUD:show_entity.html.twig'))


But, how can I pass a parameter to use in that template?

Thank you

Reply all
Reply to author
Forward
0 new messages