Published Content should handle "is previewing" (#17957)

This commit is contained in:
Kenn Jacobsen
2025-01-14 10:39:39 +01:00
committed by GitHub
parent 6fc728c3d7
commit d6e7f83e3b

View File

@@ -42,6 +42,8 @@ internal class PublishedContent : PublishedContentBase
_urlSegment = contentData.UrlSegment;
_published = contentData.Published;
IsPreviewing = preview;
var properties = new IPublishedProperty[_contentNode.ContentType.PropertyTypes.Count()];
var i = 0;
foreach (IPublishedPropertyType propertyType in _contentNode.ContentType.PropertyTypes)
@@ -127,7 +129,7 @@ internal class PublishedContent : PublishedContentBase
public override DateTime UpdateDate { get; }
public bool IsPreviewing { get; } = false;
public bool IsPreviewing { get; }
// Needed for publishedProperty
internal IVariationContextAccessor VariationContextAccessor { get; }