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
Hi guys, currently I get a node by it's document type in the following way:
public IPublishedContent GetPage(string documentType) { var page = umbracoHelper.TypedContentSingleAtXPath("//" + documentType); if (page != null) { return page; } return null; }
I was wondering if there was a more modern way of doing this?
Hi
Some help you will find here:
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
Getting IPublishedContent by Document Type
Hi guys, currently I get a node by it's document type in the following way:
I was wondering if there was a more modern way of doing this?
Hi
Some help you will find here:
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.