Expand my Community achievements bar.

SOLVED

Inheritance of datatypes/properties of one content fragment model into another content fragment model

Avatar

Level 3

Need to inherit datatypes/properties of one content fragment model into another
content fragment model like nested one content fragment model into another.

Is there any other datatypes or way to inherit properties of one content fragment model into another.

Please help here

1 Accepted Solution

Avatar

Correct answer by
Employee Advisor

Hi,

 

I believe those data types are only available in AEM Cloud Service, not in AEM 6.5. This relies on GraphQL here are some links you can follow around Graph QL.

 

1. https://experienceleague.adobe.com/docs/experience-manager-learn/getting-started-with-aem-headless/g...

 

2 https://experienceleague.adobe.com/docs/experience-manager-learn/getting-started-with-aem-headless/g...

 

 

Please see the docs for 6.5 in case you were looking at docs for Cloud Service:

 

https://experienceleague.adobe.com/docs/experience-manager-65/assets/fragments/content-fragments-mod...

View solution in original post

4 Replies

Avatar

Community Advisor

Hi @Rohit4,

Please have a closer look on Content Reference and/or Fragment Reference (Nested Fragments). To use Fragment Reference you will need AEM 6.5.10 or newer.

Avatar

Level 3

Hi @lukasz-m 

Thanks for reply

 

I have tried to use Fragment reference datatype which is taking only reference of content fragment(means only we can give reference of one content fragment into other content fragments),not content fragment model (template). Also tried to use Content Reference for Image which is also similar as Fragment reference.

 

Required scenario: Need to inherit one base content Fragment Model which have fields (Seo Title,Seo Meta) in main content Fragment Model which have fields(Title, Description) and when we create content fragment using main Content Fragment Model which will have fields(Title, Description,Seo Title,Seo Meta).

 

Please suggest is there any way to inherit datatypes/properties of one content fragment model into another.

 

Avatar

Correct answer by
Employee Advisor

Hi,

 

I believe those data types are only available in AEM Cloud Service, not in AEM 6.5. This relies on GraphQL here are some links you can follow around Graph QL.

 

1. https://experienceleague.adobe.com/docs/experience-manager-learn/getting-started-with-aem-headless/g...

 

2 https://experienceleague.adobe.com/docs/experience-manager-learn/getting-started-with-aem-headless/g...

 

 

Please see the docs for 6.5 in case you were looking at docs for Cloud Service:

 

https://experienceleague.adobe.com/docs/experience-manager-65/assets/fragments/content-fragments-mod...

Avatar

Level 3

Hi @ManviSharma 

After installing AEM Cloud Services and graphiql-0.0.6 on local but while creating Fragment Model, not able to see GraphQL tab on my local which is highlighted below. Please suggest what needs to do to get it?

Below screenshot from adobe site:

Rohit4_0-1650635877743.png

Required scenario: Need to inherit one base content Fragment Model which have fields (Seo Title,Seo Meta) in main content Fragment Model which have fields(Title, Description) and when we create content fragment using main Content Fragment Model which will have fields(Title, Description,Seo Title,Seo Meta).