We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
If you select a background image for the hero element then you get the error
ArgumentNullException: Value cannot be null. (Parameter 'mediaWithCrops')
This is because the hero.cshtml partial is trying to find the 'image' property instead of 'background' image
var backgroundImage = Model.HasValue("backgroundImage") ? $"background-image:url({Model.Value<MediaWithCrops>("Image").GetCropUrl("hero")}); background-repeat: no-repeat; background-size: cover;" : string.Empty;
The product page also has this problem.
I will submit a fix for this shortly
The text was updated successfully, but these errors were encountered:
Fix display of background image on hero element.
d56f13e
Fixes issue UmbHost#17
No branches or pull requests
If you select a background image for the hero element then you get the error
ArgumentNullException: Value cannot be null. (Parameter 'mediaWithCrops')
This is because the hero.cshtml partial is trying to find the 'image' property instead of 'background' image
var backgroundImage = Model.HasValue("backgroundImage") ? $"background-image:url({Model.Value<MediaWithCrops>("Image").GetCropUrl("hero")}); background-repeat: no-repeat; background-size: cover;" : string.Empty;
The product page also has this problem.
I will submit a fix for this shortly
The text was updated successfully, but these errors were encountered: