I am working with Sitecore 10.3
and SXA
, and I need to access the route node from the Layout Service
response within my custom code so that I can iterate over all the placeholders
in response to append some custom data. Which Sitecore pipeline and processor should I override or patch to achieve this?
{
"sitecore": {
"context": {
"pageEditing": false,
"site": {
"name": "SampleSite"
},
"pageState": "normal",
"language": "en",
"itemPath": "/sample/path/to-item"
},
"route": {
"name": "Sample Route Name",
"displayName": "Sample Route Display Name",
"fields": {
"PublishedDate": {
"value": "2020-08-25T00:00:00Z"
},
"Authors": [
{
"id": "11111111-2222-3333-4444-555555555555",
"name": "Sample Author"
}
]
}
},
"placeholders": {
"jss-masthead": [
{
"uid": "sample-uid",
"componentName": "PartialDesignDynamicPlaceholder",
"placeholders": {
"sxa-header2": [
{
"uid": "sample-header-uid",
"componentName": "GlobalNav",
"fields": {
"DesktopImage": {
"value": {
"src": "https://example.com/media/logo.jpg",
"alt": "Logo"
}
}
}
}
]
}
}
]
}
}
}