AEM content fragment is not displayed in publish | Community
Skip to main content
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 Teja_G

@aditi5 If you are trying through dispatcher url, make sure the link is allowed in dispatcher rules.

Eg:

/0001 { /type "allow" /method "GET" /url "*/api/assets/contentfragment/demo.model.json" }

 

Apart from above one, did you try debugging the issue like below

1. Have you checked network logs in browser? Any console errors?

2. Is it working fine with publish IP address? If not make sure the asset is activated and queue is clear.

3. Any errors in AEM logs? when you try to access the fragment?

 

Thank you!!

2 replies

krati_garg
Adobe Employee
Adobe Employee
December 28, 2023

@aditi5 

Got Sample Content Fragments on my local setup and published a CF on to the publisher. And I see no issues in getting a json response:

http://localhost:4503/api/assets/sample-content-fragments/cities/berlin.model.json

 

Please validate, that Content Fragment has been published to the Publisher.

Also, when you hit above url on Publisher, what response do you get.

 

This should work seamlessly, unless your Content is stuck in Replication/Distribution Queue.

Teja_GAccepted solution
Level 3
January 9, 2024

@aditi5 If you are trying through dispatcher url, make sure the link is allowed in dispatcher rules.

Eg:

/0001 { /type "allow" /method "GET" /url "*/api/assets/contentfragment/demo.model.json" }

 

Apart from above one, did you try debugging the issue like below

1. Have you checked network logs in browser? Any console errors?

2. Is it working fine with publish IP address? If not make sure the asset is activated and queue is clear.

3. Any errors in AEM logs? when you try to access the fragment?

 

Thank you!!