Content Fragment - Nested Content Fragment and Fragment Reference | Community
Skip to main content
Level 2
August 23, 2024
Solved

Content Fragment - Nested Content Fragment and Fragment Reference

  • August 23, 2024
  • 2 replies
  • 842 views

Hi Everyone,

In my AEM project I have multiple language (locale) like en-us, ar-ae, ja-jp and so on,
A content fragment exist with Copyright text and contains year. Everytime, I need to update the year, I have to visit each and individual content fragment for a language and update the year. Is there any way so that I have to update the year at one content fragment and it gets update in all the languages.

Also, I have created two CF model, Model A and Model B. In Model A, I have given a multiline field and allowed it to take reference from  Model B. I have created a simple CF with both the models.
Now, when I add the CF component on the page, and I select the CF which is based on Model A, I do not get the value( by value I mean, any content authored ) which I have authored in CF based out of Model B.
Am  I missing something ?

Please advise. 

Thanks in Advance
Aditya 
@kautuk_sahni 

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by h_kataria

I believe it will be printing the path of nested content fragment ? If so, then it seems to be the expected behaviour Check this https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/refer-content-fragment-in-another-content-fragment/td-p/447696 

2 replies

h_kataria
Community Advisor
h_katariaCommunity AdvisorAccepted solution
Community Advisor
August 23, 2024

I believe it will be printing the path of nested content fragment ? If so, then it seems to be the expected behaviour Check this https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/refer-content-fragment-in-another-content-fragment/td-p/447696 

kautuk_sahni
Community Manager
Community Manager
August 30, 2024

@adi411 Did you find the suggestion from users helpful? Please let us know if you require more information. Otherwise, please mark the answer as correct for posterity. If you've discovered a solution yourself, we would appreciate it if you could share it with the community. Thank you!

Kautuk Sahni
adi411Author
Level 2
August 30, 2024

Yeah @h_kataria 's comment is the True Answer. It will always print a path.It's the default expected behaviour.
@kautuk_sahni