Open devaneando opened 6 years ago
According to the 'Resources/doc/show_view_types.md` file:
Available options protected function configureShowFields(ShowMapper $showMapper) { $showMapper ... ->add('picture', 'image', [ 'prefix' => '/bundles/acme/images/', // Image url prefix, default to null 'width' => 75, // Image width, default to 50px, 'height' => 75, // Image height, default to 50px, ]); }
protected function configureShowFields(ShowMapper $showMapper) { $showMapper ... ->add('picture', 'image', [ 'prefix' => '/bundles/acme/images/', // Image url prefix, default to null 'width' => 75, // Image width, default to 50px, 'height' => 75, // Image height, default to 50px, ]); }
But the show template, does not have the prefix, the width and the height options available. This PR adds these options to the template.
prefix
width
height
According to the 'Resources/doc/show_view_types.md` file:
But the show template, does not have the
prefix
, thewidth
and theheight
options available. This PR adds these options to the template.