Currently an image extra field gets the ALT text from the field label. I'm trying to find a way to customise the ALT text - either taking the item title or potentially the value of another extra field called "ALT Text".
This article (getk2.org/documentation/tips-a-tricks/1129-extra-field-image-type-as-link) about converting the output into a hyperlink gets me close, but I can't quite get it to work for this purpose.
Currently my code to insert the field is justin my item.php override
Which results in:
Thanks in advance for any help.
This article (getk2.org/documentation/tips-a-tricks/1129-extra-field-image-type-as-link) about converting the output into a hyperlink gets me close, but I can't quite get it to work for this purpose.
Currently my code to insert the field is just
<?php echo $this->item->extraFields->GALLERYIMAGE->value; ?>Which results in:
<img alt="Gallery Image" src="/images/gallery/basketball_profile.jpg">Thanks in advance for any help.