'umbraco.presentation.nodeFactory.Nodes' does not contain a definition for 'Take' and no extension method 'Take' accepting a first argument of type 'umbraco.presentation.nodeFactory.Nodes' could be found (are you missing a using directive or an assembly reference?)
Hi Anton, I've not tested this but does the following help ?
uQuery.GetCurrentNode().GetChildNodes().Take(10);
(GetChildNodea is an extension method in uComponents.Core.uQueryExtensions that returns an IEnumeranle of Node objects, so should work with the Take method)
uComponents.Core.uQuery.GetCurrentNode().Children.Take(10);
'umbraco.presentation.nodeFactory.Nodes' does not contain a definition for 'Take' and no extension method 'Take' accepting a first argument of type 'umbraco.presentation.nodeFactory.Nodes' could be found (are you missing a using directive or an assembly reference?)
Hi Anton, I've not tested this but does the following help ?
uQuery.GetCurrentNode().GetChildNodes().Take(10);
(GetChildNodea is an extension method in uComponents.Core.uQueryExtensions that returns an IEnumeranle of Node objects, so should work with the Take method)
uComponents.Core.uQueryExtensions.NodeExtensions.GetChildNodes(Node.GetCurrent()).Take(10)
Thanks, it is working)
is working on a reply...