Skip to main content
Level 2
Apr 15, 2022 1:21 PM UTC
Solved

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

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

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
ManviSharma
ManviSharmaAccepted solution
Employee
Apr 18, 2022 10:42 AM UTC

4 replies

ManviSharma
ManviSharmaAccepted solution
Employee
Apr 18, 2022 10:42 AM UTC
Rohit4Author
Level 2
Apr 22, 2022 2:00 PM UTC

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:

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).

 

Translate
lukasz-m
New Participant
Apr 15, 2022 10:39 PM UTC

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.

Translate
Rohit4Author
Level 2
Apr 18, 2022 9:59 AM UTC

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.

 

Translate