Can i use alt text from filemanager?
Permalink Browser Info Environment
Great block, thank you!! I have 1 question, is it possible to use the alt text from filemanager instead of the build in alt text fields?
What do i have to edit in the generated block to add this?
What do i have to edit in the generated block to add this?
Type: | Discussion |
---|---|
Status: | New |
in controller.php add:
$image->alt = $file->getDescription();
after: $image = $ih->getThumbnail($file, $width, $height, $crop);
in view.php replace:
alt=""
with:
alt="<?php echo $field_1_image->alt; ?>"