Hi guys,
I can't seem to get to the items below a level. I keep getting:
'umbraco.MacroEngines.DynamicNodeList' does not contain a definition for 'GetChildrenAsList'
'umbraco.MacroEngines.DynamicNodeList' does not contain a definition for 'Down'
'umbraco.MacroEngines.DynamicNodeList' does not contain a definition for 'Children'
'umbraco.MacroEngines.DynamicNodeList' does not contain a definition for 'Descendants'
My website is structured like:
Website
-homepage
--banners
--Categories
So when I'm on the homepage I want using Razor to loop round the banners. I've tried a loads of different ways but can't seem to get it working. Even just writing out the number of items under banners throws one of the above errors:
dynamic banners = Model.HomepageCategories.GetChildrenAsList();
@banners.Count()
Above would throw:
'umbraco.MacroEngines.DynamicNodeList' does not contain a definition for 'GetChildrenAsList'
Also stuff like this blows up:
dynamic banners = Model.Descendants("HomepageCategories").Children;
or
dynamic banners = Model.Descendants("HomepageCategories").Children();
I'm running 6.3.1, and I've install TeaCommerce but haven't done anything with it.
Thanks
Rob