Populate the placeholders field for layouts

Current version: 20.x

When fetching layout/route data using the REST Layout Service, you might encounter situations where the placeholders field for a layout is empty or does not include some placeholders you were expecting to see in the data.

If there is missing placeholder information in the JSON data structure under sitecore.route.placeholders, for every one of your layouts, you must configure the Layout Service Placeholders field.

The Layout Service Placeholders field determines which placeholder information to include in the Layout Service response data.

Important

When you follow this procedure, the Layout Service returns JSON data for renderings in each placeholder. If you want to serialize renderings to HTML, configure the Sitecore Layout Service to output HTML for MVC renderings.

Do you have some feedback for us?

If you have suggestions for improving this article,