Configuration options for the Layout Service
When you want to modify the behavior of the Layout Service, you can use configuration files to change the maximum depth for serialization, include or exclude paths, and more.
The Layout Service configuration accepts the following attributes:
-
serializableRenderingTypes. -
serializationMaxDepth. -
paths. -
configurations.
The serializableRenderingTypes attribute
The serializableRenderingTypes attribute
You can use the serializableRenderingTypes attribute to define the list of rendering IDs that can be present as JSON while getting the rendering result.
For example:
The serializationMaxDepth attribute
The serializationMaxDepth attribute
You can specify the maximum depth for items retrieved in linked fields with the serializationMaxDepth attribute. The default value is 4.
For example:
The paths attribute
The paths attribute
You can use the excludePaths element to specify excluded paths.
For example:
The configurations attribute
The configurations attribute
Using the configurations node, you can define named configurations that allow overriding the default Layout Service behavior.
For example: