Five New Optimizely Certifications are Here! Validate your expertise and advance your career with our latest certification exams. Click here to find out more

ContentReference and Html.ContentLink and published content

Vote:
 

Hi.


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?


Regards

#178857
May 24, 2017 13:01
Vote:
 

Hi,

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

#178860
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.