Inheritance of datatypes/properties of one content fragment model into another content fragment model | Community
Skip to main content
Level 2
April 15, 2022
Solved

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

  • April 15, 2022
  • 2 replies
  • 1244 views

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.

2 replies

lukasz-m
Community Advisor
Community Advisor
April 15, 2022

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.

Rohit4Author
Level 2
April 18, 2022

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.

 

ManviSharma
Adobe Employee
ManviSharmaAdobe EmployeeAccepted solution
Adobe Employee
April 18, 2022
Rohit4Author
Level 2
April 22, 2022

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