AEM XF (Experience Fragments) vs. CF (Content Fragment) | Community
Skip to main content
UXGUYDAN
January 27, 2025
Solved

AEM XF (Experience Fragments) vs. CF (Content Fragment)

  • January 27, 2025
  • 4 replies
  • 817 views

I know that when I go to publish a page I can either select "Now" or "Set a future date".

Is it possible to publish an XF or CF that is on a page, alone? In other words, I have a live page in production but I add an XF or CF to the live copy and want to set a future publish date as well as a future removal date for the fragment.

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 Shiv_Prakash_Patel

Hi @uxguydan 

Yes, it is possible to publish or unpublish an XF (Experience Fragment) or CF (Content Fragment) on a live page independently with scheduled dates.

Schedule Publish: Navigate to the XF or CF in AEM, select Manage Publication → Publish Later, set the future publish date, and confirm.

Schedule Removal: Navigate to the XF or CF, select Manage Publication → Unpublish Later, set the future unpublish date, and confirm.

The live page will dynamically reflect the XF or CF updates at the scheduled times without requiring you to republish the page. This ensures seamless updates and content lifecycle management without disrupting the production environment.

Regards,

4 replies

Shiv_Prakash_Patel
Community Advisor
Shiv_Prakash_PatelCommunity AdvisorAccepted solution
Community Advisor
January 27, 2025

Hi @uxguydan 

Yes, it is possible to publish or unpublish an XF (Experience Fragment) or CF (Content Fragment) on a live page independently with scheduled dates.

Schedule Publish: Navigate to the XF or CF in AEM, select Manage Publication → Publish Later, set the future publish date, and confirm.

Schedule Removal: Navigate to the XF or CF, select Manage Publication → Unpublish Later, set the future unpublish date, and confirm.

The live page will dynamically reflect the XF or CF updates at the scheduled times without requiring you to republish the page. This ensures seamless updates and content lifecycle management without disrupting the production environment.

Regards,

Shiv Prakash
Ravi_Pampana
Community Advisor
Community Advisor
January 27, 2025

To add to what has already been mentioned, deactivating or activating the XF or CF might not immediately reflect on the live page if the page is cached in the CDN and the XF or CF is being rendered from the publisher. In such cases, you would need to clear the CDN and dispatcher cache for the changes to be visible. It ultimately depends on how the XF or CF is being rendered on your live page. 

If the XF or CF are added using ESI or included through the Sling Dynamic Include option in AEM, then cache clearing is not necessary. 

https://experienceleague.adobe.com/en/docs/experience-manager-learn/foundation/development/set-up-sling-dynamic-include

avesh_narang
Level 3
January 28, 2025

Additionally, if the change affects more than just XF or CF and requires modifications to the entire page for future releases, you can also consider utilizing Launches.

https://experienceleague.adobe.com/en/docs/experience-manager-cloud-service/content/sites/authoring/launches/overview

 

kautuk_sahni
Community Manager
Community Manager
January 29, 2025

@uxguydan Did you find the suggestions 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