Expand my Community achievements bar.

Sling Model exporter for Layout Container

Avatar

Level 1

Hi,

We are using OOB responsive Grid along with a customized responsive grid.

The only customization is a dialog which has been added , and a Sling Model Exporter.

ParentNode -- ResponsiveGrid (OOB)

Child Nodes -- Node 1, node 2, Custom Responsive Grid

 

Request :- parentNode.model.json

Response Expected:-

OOB JSON + Custom Exporter JSON

Response Rendered :-

OOB JSON 

 

Custom Responsive Grid Details  :-

1) resource:superType is OOB Responsive Grid

2) Has a Sling model Exporter attached

 

Requirement :- On invoking parentNode.model.json (the OOB Responsive Grid), while rendering the custom responsive Grid, should ideally delegate to the Custom Exporter, which could render the customized response.

 

Is there a way to achieve this, any configuration which could be missing

2 Replies

Avatar

Community Advisor

@parakhmahe Please add OOTB responsive grid resourcetype also to your Custom Sling model resourcetype.

Avatar

Level 1

ParentNode -- ResponsiveGrid (OOB)

Child Nodes -- Node 1, node 2, Custom Responsive Grid

 

Custom Responsive Grid Details  :-

1) resource:superType is OOB Responsive Grid

2) Has a Sling model Exporter attached

 

Problem Statement :-

1) request Parentnode.model.json 

Gives OOB JSON

2) Request custom responsive Grid .model.json

Gives Customized Exporter JSON

 

Requirement :- On invoking parentNode.model.json (the OOB Responsive Grid), while rendering the custom responsive Grid, it should ideally delegate to the Custom Exporter.

 

Response Expected:-

OOB JSON + Custom Exporter JSON

 

Response Rendered :-

OOB JSON