Closed cithukyaw closed 9 years ago
I traced in configureShowField()
, but it seems not calling the method.
Hello,
It's not configureShowField()
but configureShowFields()
: you are missing the 'S'.
Oh, that's correct. Thank you. The jobeet tutorial is wrong.
i want to override block show in base_show.html.twig but, i can't. my config is the same above!!
@hieuit7 I think you could create \app\Resources\SonataAdminBundle\views\CRUD\base_show.html.twig
.
@cithukyaw i sorry, i sloved my problem! incorrect in my code!! setTemplate instead of setTemplates for array templates!!!
I'm integrating Sonata Admin Bundle into my Symfony 2.6 application by following Symfony 2 jobeet tutorial. Everything is fine except the Show action. I have an entiry "Job" and so I have
src/Ibw/JobeetBundle/Admin/JobAdmin.php
which have a functionconfigurShowField(ShowMapper $showMapper)
like belowWhen I click the Show button and go to the view page (admin/ibw/jobeet/job/xxx/show), it shows none of the fields. The original template processed is
/vendor/sonata-project/admin-bundle/Resources/views/CRUD/base_show.html.twig
:The inner content of
<div class="sonata-ba-view"></div>
is not shown except three asterisks I printed. Is there any configuration I'm missing?