コミュニティアチーブメントバーを展開する。

Submissions are now open for the 2026 Adobe Experience Maker Awards.

Mark Solution

この会話は、活動がないためロックされています。新しい投稿を作成してください。

解決済み

Expose content as json - Multiple resourceType

Avatar

Level 5

I have a use-case where I want to use expose a JSON(Multiple resource types). 

 

/content/wknd/poc/jcr:content/root/container/imaewithtext.json .its exposing only parent content not child components(Text and Image)

 

<div class="imagewithtext">

<div data-sly-resource="${'image' @path='wknd/components/text'}"/>

<div data-sly-resource="${'image' @path='wknd/components/image'}"/>

</div>

1 受け入れられたソリューション

Avatar

正解者
Community Advisor

Hi @AEMLearner-1989, you can use .model.json instead of .json to export the content if the Sling Models use the Sling Model Exporter framework. 

元の投稿で解決策を見る

3 返信

Avatar

正解者
Community Advisor

Hi @AEMLearner-1989, you can use .model.json instead of .json to export the content if the Sling Models use the Sling Model Exporter framework. 

Avatar

Level 5

@AEMLearner-1989  - Check this you will have an idea about sling exporter after going through -

https://experienceleague.adobe.com/docs/experience-manager-learn/foundation/development/develop-slin...

 

Avatar

Level 5

I got the solution. Model.json is won't work here instead you can give infinity.json so that iterate all the child nodes of parent. 

 

And also you can write a custom logic like resource.listchildren and iterate the node as per your need.