I'm getting an error with any page when accessing a URL with a culture set to anything but English.
So I have to domains / cultures set up in the cultures and hostnames and if I go to mysite.com/en it works fine, but if I go to mysite.com/es it breaks with the following error:
'Umbraco.Web.Models.RenderModel' does not contain a definition for 'sections'
And this is what the error is attributed to (in a relatively unmodified grid render).
Any thoughts?
Line 7: *@
Line 8:
Line 9: @if (Model != null && Model.sections != null)
Line 10: {
Line 11: var oneColumn = ((System.Collections.ICollection)Model.sections).Count == 1;
All cultures but english throwing error
I'm getting an error with any page when accessing a URL with a culture set to anything but English.
So I have to domains / cultures set up in the cultures and hostnames and if I go to mysite.com/en it works fine, but if I go to mysite.com/es it breaks with the following error:
'Umbraco.Web.Models.RenderModel' does not contain a definition for 'sections'
And this is what the error is attributed to (in a relatively unmodified grid render).
Any thoughts?
Line 7: *@ Line 8:
Line 9: @if (Model != null && Model.sections != null) Line 10: { Line 11: var oneColumn = ((System.Collections.ICollection)Model.sections).Count == 1;
Hi Amir,
Can you show what are you using at inherits in your partial view ?
Looks like you need to change it to UmbracoTemplatePage.
Thanks,
Alex
is working on a reply...