We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 2515182 + 676bce9 commit 361fca1Copy full SHA for 361fca1
Sdl.Web.Tridion.Templates.R2/Data/DefaultModelBuilder.cs
@@ -440,6 +440,11 @@ private EntityModelData GetEntityModelData(ComponentPresentation cp)
440
{
441
Id = $"{GetDxaIdentifier(cp.Component)}-{GetDxaIdentifier(ct)}"
442
};
443
+
444
+ // This property is internal so have to set it via reflection. This prevents the
445
+ // publishing package containing an empty DCP
446
+ childRenderedItem.GetType().GetProperty("IsRenderedCompletely")
447
+ .SetValue(childRenderedItem, false, null);
448
}
449
else
450
0 commit comments