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

Fix Culture Varying Blog Page not returning BlogLogo in GetArticulateCropUrl #410

Merged
merged 1 commit into from
Oct 31, 2022

Conversation

marcemarc
Copy link
Contributor

When the Blog page varies by culture... GetArticulateCropUrl only returns blogBanner image property.

Looks like the GetArticulateCropUrl is called in two places in the MasterModel.cs, once for "blogLogo" and then another time for "blogBanner"

image

if the page doesn't vary by culture, all is ok the GetCropUrl is called with the appropriate propertyalias variable passed in....

... but in the circumstance that the page does vary by culture it seems hardcoded to only use the "blogBanner"...

image

this tweak means the propertyalias variable passed in will be used, and it will return the appropriate image...

…s blogBanner image

Looks like the GetArticulateCropUrl is called in two places in the MasterModel.cs, once for "blogLogo" and then another time for "blogBanner" - if the page doesn't vary by culture, all is ok the GetCropUrl is called with the appropriate propertyalias passed in.... but in the circumstance that the page does vary by culture it's hardcoded to only use the "blogBanner"... this tweak means the propertyalias passed will be used...
@Shazwazza
Copy link
Owner

So sorry for the delay here! I'll get to this this afternoon

@Shazwazza Shazwazza added the bug label Oct 31, 2022
@Shazwazza Shazwazza merged commit e93ba15 into Shazwazza:develop Oct 31, 2022
@Shazwazza
Copy link
Owner

Thanks @marcemarc !

@marcemarc
Copy link
Contributor Author

So sorry for the delay here! I'll get to this this afternoon

no problem! good to hear from you, hope all going well post Umbraco HQ!

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

Successfully merging this pull request may close these issues.

2 participants