SaaS CMS has officially launched! Learn more now.

ContentReference and Html.ContentLink and published content



Is it possible to check whether a ContentReference is pointing to published / expired content or will I need to load the content to check?

The usecase here is that via the administration, the editors can choose links on a page which will be written via the Html.ContentLink(reference) extension.
But I noticed that if the editor expires content, the link will still be created (and give a 404).

Is it possible to check without loading the content?


May 24, 2017 13:01


No you need to load, or rather try to load, the content.

May 24, 2017 15:36
This topic was created over six months ago and has been resolved. If you have a similar question, please create a new topic and refer to this one.
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.