You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Can the media's description (Alt text module) get pulled as the alt text, e.g., alt="Davidson College Logo" for the media on the timeline? The Mapping Module added this in a recent commit and has the following text. I've tried to implement it (and smaller snippets of the code) into different files in the Timeline configuration with no luck.
// Set the "media" object.
$media = $item->primaryMedia();
if ($media) {
$event['media'] = [
'url' => $media->thumbnailUrl('large'),
'thumbnail' => $media->thumbnailUrl('medium'),
'link' => $item->url(),
'alt' => $media->altText(),
];
}
Thanks so much!
The text was updated successfully, but these errors were encountered:
Can the media's description (Alt text module) get pulled as the alt text, e.g.,
alt="Davidson College Logo"
for the media on the timeline? The Mapping Module added this in a recent commit and has the following text. I've tried to implement it (and smaller snippets of the code) into different files in the Timeline configuration with no luck.Thanks so much!
The text was updated successfully, but these errors were encountered: