Expand my Community achievements bar.

Guidelines for the Responsible Use of Generative AI in the Experience Cloud Community.
SOLVED

Fetch properties from content fragment

Avatar

Level 5

I have a content fragment the jcr of which has got a child node named master within which the values are stored. Say there is a property xyz whose value is a group of tags, (this is stored in master node) now how do I fetch that property's values into my sling model. If someone could provide me with the code/explanation of the steps, it'll be really helpful.

 

@arunpatidar @Sachin_Arora_ @HeenaMadan @lukasz-m @BrianKasingli @SantoshSai @milind_bachani @DEBAL_DAS 

 

Thanks in advance

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

Check this out which explains about the querying content fragments and using sling model to access the properties stored jcr:content/data/master node. 

 

https://engineering.icf.com/aem-content-fragments-as-an-api/ 

View solution in original post

1 Reply

Avatar

Correct answer by
Community Advisor

Check this out which explains about the querying content fragments and using sling model to access the properties stored jcr:content/data/master node. 

 

https://engineering.icf.com/aem-content-fragments-as-an-api/