Thanks for the heads up, for some reason that line didnt want to display any content. Just a blank page.
I used the Query builder and got it working with this line;
var nodes = Umbraco.Content(Guid.Parse("fac06b19-ab57-40f8-bd84-ce8e97ebce96")).Children("newsItem").Where(x => x.IsVisible());
My understanding as well is that we cant use @item.GetPropertyValue("blogTeaser") either so I've changed it to the following @Model.Value("blogTeaser") but nothing renders.
Any help would be great, seems there are quite alot of changes in Umbraco 8
The name 'nodes' does not exist in the current context
Hello,
I'm re creating a website from Umbraco 7 to 8 and coming across an issue;
I'm getting the following error;
Has something changed?
Thanks
Hi Matt
This depends on what
nodes
is. Can you show some more code?Hello,
This is the complete code;
Thanks. There is no dynamic access to your content anymore, and some other parts have been moved around, so your
var nodes
line should readvar nodes = Model.Children.Where(x => x.ContentType.Alias == "blogItem").OrderByDescending(x => x.CreateDate);
Hello,
Thanks for the heads up, for some reason that line didnt want to display any content. Just a blank page.
I used the Query builder and got it working with this line;
My understanding as well is that we cant use @item.GetPropertyValue("blogTeaser") either so I've changed it to the following @Model.Value("blogTeaser") but nothing renders.
Any help would be great, seems there are quite alot of changes in Umbraco 8
Thanks
is working on a reply...