Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
I need to find first child of dynamic node with a specific document type alias.
-parent
-child (document type: do not find me)
-child (document type: Findme)
I have a lot....Among:
DynamicNode d = new DynamicNode(Convert.ToInt32(node.Id)); var test1 = d.Children.Where(x => x.DocumentTypeAlias == "Findme").FirstOrDefault(); //var test2 = d.Children.FirstOrDefault();
test1 failes on x.DocumentTypeAlias
test2 is okay
I am using Umbraco7.1
Thanks
Hi Anders,
How about something like this:
DynamicNode d = newDynamicNode(Convert.ToInt32(node.Id));var test1 = d.Children.Where(x => x.NodeTypeAlias == "findme").FirstOrDefault();
Hope this helps,
/Dennis
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
Get first child node with document type.
I need to find first child of dynamic node with a specific document type alias.
-parent
-child (document type: do not find me)
-child (document type: Findme)
I have a lot....Among:
test1 failes on x.DocumentTypeAlias
test2 is okay
I am using Umbraco7.1
Thanks
Hi Anders,
How about something like this:
Hope this helps,
/Dennis
is working on a reply...