Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
...
<config name="default">
<rendering type="Sitecore.LayoutService.Configuration.DefaultRenderingConfiguration, Sitecore.LayoutService">
...
<itemSerializer type="Sitecore.LayoutService.Serialization.ItemSerializers.DefaultItemSerializer, Sitecore.LayoutService" resolve="true">
<AlwaysIncludeEmptyFields>true</AlwaysIncludeEmptyFields>
</itemSerializer>
...
</rendering>
</config>
<config name="jss">
<rendering type="Sitecore.LayoutService.Configuration.DefaultRenderingConfiguration, Sitecore.LayoutService">
...
<itemSerializer type="Sitecore.JavaScriptServices.ViewEngine.LayoutService.JssItemSerializer, Sitecore.JavaScriptServices.ViewEngine" resolve="true">
<AlwaysIncludeEmptyFields>true</AlwaysIncludeEmptyFields>
</itemSerializer>
...
</rendering>
</config>
...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment