What's the best way to expose and consume a content fragment

Avatar

Avatar

pavanr6387218

Avatar

pavanr6387218

pavanr6387218

14-12-2018

Hi Team,

    

     The scenario is that the content authors are going to create several content-fragments. These content-fragments will have to be then consumed by AEM and Mobile App, to apply appropriate styling to be published to the end customer.

     I have gone through several documents where a content-fragment is associated with a page and then exposed as a JSON. Are there any better ways in which we can expose the content-fragment?

What's the best way to expose and consume content fragments within AEM and for an App?

Replies

Avatar

Avatar

edubey

Avatar

edubey

edubey

14-12-2018

You can use content services from aem to get the CF

here is a demo with react app

https://helpx.adobe.com/experience-manager/kt/sites/using/content-services-tutorial-use/part7.html

Avatar

Avatar

smacdonald2008

Total Posts

12.7K

Likes

1.4K

Correct Reply

2.3K

Avatar

smacdonald2008

Total Posts

12.7K

Likes

1.4K

Correct Reply

2.3K
smacdonald2008

14-12-2018

Of course - the basic use of them is to display within an AEM page - as discussed here -- Adobe Experience Manager Help | Working with Adobe Experience Manager 6.4 Content Fragments

Avatar

Avatar

pavanr6387218

Avatar

pavanr6387218

pavanr6387218

14-12-2018

Hi Sam,

     We have multiple channels where the content has to be shared. The content which is created via the content-fragments has to be consumed by the particular channel to apply the style(CSS) to achieve the look and feel.

Avatar

Avatar

smacdonald2008

Total Posts

12.7K

Likes

1.4K

Correct Reply

2.3K

Avatar

smacdonald2008

Total Posts

12.7K

Likes

1.4K

Correct Reply

2.3K
smacdonald2008

14-12-2018

Praveen answer is correct - you would use Content Services in that case.

Avatar

Avatar

pavanr6387218

Avatar

pavanr6387218

pavanr6387218

14-12-2018

Hi Edubey,

          Thank you for the article reference. It is helpful but they are using multiple content-fragments onto a page which is then exposed. Are there any alternative ways in which we can expose this content-fragment data?

Avatar

Avatar

smacdonald2008

Total Posts

12.7K

Likes

1.4K

Correct Reply

2.3K

Avatar

smacdonald2008

Total Posts

12.7K

Likes

1.4K

Correct Reply

2.3K
smacdonald2008

14-12-2018

While waiting to Praveen to reply - i recommend that you watch this Ask the AEM COMMUNITY Experts on Content Services - AEM Content Services: What, Why, and How?

Avatar

Avatar

pavanr6387218

Avatar

pavanr6387218

pavanr6387218

17-01-2019

I ended up creating an API which exposes the content fragment based on Content Fragment name