How to display Content Fragments in UI.?
Hi @1905403,
I have couple of Content Fragments which i need to show in UI. How to do this one. Can any one help me please?
Hi @1905403,
I have couple of Content Fragments which i need to show in UI. How to do this one. Can any one help me please?
For content authoring, you can simply go to dam assets, and edit the content fragment; here you can edit content based on how your content fragment schema is setup.https://docs.adobe.com/content/help/en/experience-manager-64/developing/extending-aem/customizing-content-fragments.html
To display content from the content fragment you can have several methods, but these are the popular methods that I've used in the past:
API: When you want to expose Json to 3rd party services, you can utilise the WCM Core Component V2 Page, and also the WCM Core Component content fragment component, you can call model.json on the page, and see the basic structure of the content fragment values presented as the JSON response.
I hope this helps.
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.