No "class" setting for the Image field type?
Permalink Browser Info Environment
In Block Designer, there is a "class" field for Image field type, which adds the class attribute to img element. However, in Block Developer, I couldn't set the class for Image field type. Is there no class setting for Image field type, or is my config missing something?
config.php 'thumb' => [ 'label' => 'thumbnail image', 'type' => 'Image', 'required' => false, 'view' => [ 'prefix' => '<a class="popup">', 'suffix' => '</a>', 'class' => 'thumb', // does not appeared in <img> element 'thumbnail_handle' => 'works_thumb' ] ],
Type: | Pre-Sale |
---|---|
Status: | Resolved |
Good catch, this was a bug (the HTML attribute wasn't applied). I fixed that in version 1.1.2. So you can update to the latest version and this should be fixed!
Kind regards,
Ramon