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
Hello All,
In my content node, I have many nodes. Now I want all node's list using c# programing. Without specifying any Id or DocType name or anything else.
I want list of all any. Is this possible? if yes then let me know how it can be possible?
Thanks, Dipa
Hi Dipa,
take a look at the ContentService that you can use to get the content nodes.
/Michaël
Hi Dipa!
Using the UmbracoHelper you can get all nodes using the following:
var allNodes = Umbraco.TypedContentAtRoot().SelectMany(x => x.DescendantsOrSelf());
See output example (Note that this query does not fetch unpublished nodes):
Hope it helped!
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.
Continue discussion
Get all node's list without specifying Id or DocType
Hello All,
In my content node, I have many nodes. Now I want all node's list using c# programing. Without specifying any Id or DocType name or anything else.
I want list of all any. Is this possible? if yes then let me know how it can be possible?
Thanks, Dipa
Hi Dipa,
take a look at the ContentService that you can use to get the content nodes.
/Michaël
Hi Dipa!
Using the UmbracoHelper you can get all nodes using the following:
See output example (Note that this query does not fetch unpublished nodes):
Hope it helped!
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.