How do i get to check the DocType of all the child nodes in folder with dynamicNode ?
List<DynamicNode> VFolder = @Model.AncestorOrSelf(1).Descendants("folder").Items;
@foreach(var fd in VFolder){ if(fd.ChildrenAsList.Where("NodeTypeAlias == \"test\"").Count() > 0){
// Here Where triggers me an error @fd.Name }
The reason for this is i have multiple folders but with different child node of differentDocType
error CS1061: 'umbraco.MacroEngines.DynamicBackingItem' does not contain a definition for 'visible' and no extension method 'visible' accepting a first argument of type 'umbraco.MacroEngines.DynamicBackingItem' could be found (are you missing a using directive or an assembly reference?)
ChildrendAsList DocType
Hi Guys,
How do i get to check the DocType of all the child nodes in folder with dynamicNode ?
The reason for this is i have multiple folders but with different child node of differentDocType
Any susggestions please
Got it working
However i cant get Visible to work here
error CS1061: 'umbraco.MacroEngines.DynamicBackingItem' does not contain a definition for 'visible' and no extension method 'visible' accepting a first argument of type 'umbraco.MacroEngines.DynamicBackingItem' could be found (are you missing a using directive or an assembly reference?)
Finally got it working.
For some of you if you ever come across this issue here it is.
//fuji
is working on a reply...