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
Which is better?
protected override IPublishedContent FindContent(RequestContext requestContext, UmbracoContext umbracoContext) { var helper = new UmbracoHelper(umbracoContext); returnhelper.TypedContent(_pageId); }
Or
protected override IPublishedContent FindContent(RequestContext requestContext, UmbracoContext umbracoContext) { return umbracoContext.ContentCache.GetById(_pageId); }
or another way?
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
Which is the best way to find content by Id?
Which is better?
Or
or another way?
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.