Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing Alt text of Media on Timeline #22

Open
mdavismcd opened this issue Dec 8, 2021 · 1 comment
Open

Missing Alt text of Media on Timeline #22

mdavismcd opened this issue Dec 8, 2021 · 1 comment
Assignees

Comments

@mdavismcd
Copy link

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!

@Daniel-KM Daniel-KM self-assigned this Jan 4, 2022
@mdavismcd
Copy link
Author

Hi, @Daniel-KM. I'm just checking in on this. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants