uQuery.GetNodesByType equivalent in UmbracoHelper?
Hi,
Just getting stuck into the v6 API and I'm wondering if there is an UmbracoHelper equivalent of uQuery.GetNodesByType("myDocTypeName")?
If not - are there performance penalties for using uQuery instead of UmbracoHelper, or is it just preferable to use UmbracoHelper to help future-proof my app?
If you can implement it with UmbracoHelper than I'd use that. It looks like uQuery has become a little obsolete after reading about it on uQuery's documentation page. You could use the following method from Umbraco Helper to find all content of a certain type. Check out the answer to this post for more info.
uQuery.GetNodesByType equivalent in UmbracoHelper?
Hi,
Just getting stuck into the v6 API and I'm wondering if there is an UmbracoHelper equivalent of uQuery.GetNodesByType("myDocTypeName")?
If not - are there performance penalties for using uQuery instead of UmbracoHelper, or is it just preferable to use UmbracoHelper to help future-proof my app?
Cheers,
Paul
If you can implement it with UmbracoHelper than I'd use that. It looks like uQuery has become a little obsolete after reading about it on uQuery's documentation page. You could use the following method from Umbraco Helper to find all content of a certain type. Check out the answer to this post for more info.
Thanks Dan, nailed it.
If you're hitting this page and are looking for the DescendantsOrSelf method on TypeContentAtRoot(), you'll need this extension (until 6.2 rolls in):
Cheers,
Paul
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.