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,
Anyone have any ideas on how to check if a content node is published currently I'm getting a "Object reference not set to an instance of an object." I try to pass in the node id of an unpublished page into Umbraco.TypedContent(nodeid)
Solution was to check the UmbracoTypedContent was not null
listofpageids.Where(x => Umbraco.TypedContent(x.id) != null).OrderBy(x => Umbraco.TypedContent(x.ChildId).AncestorOrSelf(1).Position()
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
Check if Content Node is Published
Hi,
Anyone have any ideas on how to check if a content node is published currently I'm getting a "Object reference not set to an instance of an object." I try to pass in the node id of an unpublished page into Umbraco.TypedContent(nodeid)
Solution was to check the UmbracoTypedContent was not null
listofpageids.Where(x => Umbraco.TypedContent(x.id) != null).OrderBy(x => Umbraco.TypedContent(x.ChildId).AncestorOrSelf(1).Position()
is working on a reply...