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
The construction of my tree node is like the following picture you see. My purpose is to fetch the all items that belong to Sports and Books.
Now I use the following method to get all items what I want. but it is a little slow. I hope there is a good way to meet my requirement.
nodeArray = umbraco.uQuery.GetNode(1059).GetDescendantNodes().Where(n => { { return n.Parent.Id==1074||n.Parent.Id==1133; } }).OrderByDescending(p => p.CreateDate).Take(10);
Do you have good ideas or suggestions? Could you helpe me?
Thank you very much!!!
Hello,
uQuery is the old api. Try IPublishedContent: https://our.umbraco.org/documentation/Reference/Mvc/querying
Jeroen
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
How to fetch multiple node quickly?
The construction of my tree node is like the following picture you see. My purpose is to fetch the all items that belong to Sports and Books.
Now I use the following method to get all items what I want. but it is a little slow. I hope there is a good way to meet my requirement.
nodeArray = umbraco.uQuery.GetNode(1059).GetDescendantNodes().Where(n => { { return n.Parent.Id==1074||n.Parent.Id==1133; } }).OrderByDescending(p => p.CreateDate).Take(10);
Do you have good ideas or suggestions? Could you helpe me?
Thank you very much!!!
Hello,
uQuery is the old api. Try IPublishedContent: https://our.umbraco.org/documentation/Reference/Mvc/querying
Jeroen
is working on a reply...