Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn More

View all

Sign in to view all badges

Exporting Content Fragment vs Page

Avatar

Avatar
Level 1
Jarvis_Lukow
Level 1

Likes

0 likes

Total Posts

2 posts

Correct Reply

0 solutions
View profile

Avatar
Level 1
Jarvis_Lukow
Level 1

Likes

0 likes

Total Posts

2 posts

Correct Reply

0 solutions
View profile
Jarvis_Lukow
Level 1

12-04-2019

I am in the process of building a content as a service (CaaS) solution, within AEM, for an external application.  We currently use sites and I am exploring the key features and best practices for implementing a Caas solution.

I have followed the examples provided by Adobe and the community regarding setting up and consuming content fragments via a sites page using a content fragment model and then referencing a content fragment within a sites page.  (http://localhost:4502/content/caas/test-content-fragment.model.json)

While this approach works, it seems like a lot of work to create/manage content that will be exposed. 

  1. Create a content fragment (A)
  2. Create a page within sites (B)
  3. Reference the content fragment (A) on the page (B)
  4. Consume content fragment (A) via page (B):  http://localhost:4502/content/b/a.model.json

I am wondering if there is any reason why we can't simply expose content without using a content fragment at all?

  1. Create a page within sites (B)
  2. Add components to page (B)
  3. Consume page (B):  http://localhost:4502/content/b.model.json

I understand using this approach means I don't get to use the features of content fragments, but it does simplify the content management workflow.  Are there any reasons why you wouldn't recommend this approach?  Or why one should consider using content fragments even though the content management process is more complex?

Deviating from the Adobe examples, I see I can export a content fragment directly without a sites page: http://localhost:4502/content/dam/caas/test-content-fragment/jcr:content/data/master.json).   Are there any issues with exporting the content fragment directly?

Replies

Avatar

Avatar
Validate 25
Level 10
smacdonald2008
Level 10

Likes

1,406 likes

Total Posts

12,671 posts

Correct Reply

2,278 solutions
Top badges earned
Validate 25
Validate 10
Validate 1
Give back 900
Give back 600
View profile

Avatar
Validate 25
Level 10
smacdonald2008
Level 10

Likes

1,406 likes

Total Posts

12,671 posts

Correct Reply

2,278 solutions
Top badges earned
Validate 25
Validate 10
Validate 1
Give back 900
Give back 600
View profile
smacdonald2008
Level 10

01-05-2019