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

Media Content rendering doesn't use correct Context.Language value #277

Open
ViacheslavSedletskyi opened this issue Jan 17, 2017 · 1 comment

Comments

@ViacheslavSedletskyi
Copy link

The problem is similar to issue #119.
The difference that problem causes when we using Src property of Glass.Mapper.Sc.Fields.Image class and render the page.
I discover that we can't get correct media content bases on Context.Language.
The problem related to SitecoreFieldImageMapper class in MapToImage method.
Suggested solution (in issue #119) within specifying MediaOptions and pull it in method call will resolve the problem:
img.Src = MediaManager.GetMediaUrl(field.MediaItem, OPTIONS);

Do you have any updates with this?

@cardinal252
Copy link
Collaborator

I think I remember working on something to do with this on a version of Sitecore. It was reported as a Glass issue, but then I proved that the options were ignored by sitecore on certain overloads?

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