Skip to content

Instantly share code, notes, and snippets.

@trnktms
Last active August 19, 2022 07:00
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save trnktms/01c6f5ce86eba1cc68bd8ec6ce11d3f7 to your computer and use it in GitHub Desktop.
...
<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