AEM asset on page publish | Community
Skip to main content
harishv99010453
Level 2
April 20, 2018
Solved

AEM asset on page publish

  • April 20, 2018
  • 2 replies
  • 3876 views

As we all know, when we publish a page, AEM prompts to activate dam assets of that page as well.

I have a requirement where I shud stop publishing dam assets while publishing a page. Do we have any OOB options available?

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 Rima_Mittal

There is nothing OOTB available, this required some customization.

Please note that the references are fetched via a POST request to /libs/wcm/core/content/reference.json (probably there is a servlet registered via resource type) which takes a page path and return the references.

These references are then displayed on the publish wizard page, /libs/wcm/core/content/sites/publishpagewizard, via a clientlib at /libs/cq/gui/components/siteadmin/admin/publishwizard/clientlibs/js/wizard.js.

If you want to override the behaviour, then you might overlay the file at /libs/cq/gui/components/siteadmin/admin/publishwizard/references/references.jsp and at Line 92, where it fetches the references URL;

"String referencesUrl = cfg.get("referencesURL", "/libs/wcm/core/content/reference.json");"

you can create a custom servlet that will not include dam asset references.

Hope this helps!!!

2 replies

Rima_Mittal
Rima_MittalAccepted solution
Level 4
April 20, 2018

There is nothing OOTB available, this required some customization.

Please note that the references are fetched via a POST request to /libs/wcm/core/content/reference.json (probably there is a servlet registered via resource type) which takes a page path and return the references.

These references are then displayed on the publish wizard page, /libs/wcm/core/content/sites/publishpagewizard, via a clientlib at /libs/cq/gui/components/siteadmin/admin/publishwizard/clientlibs/js/wizard.js.

If you want to override the behaviour, then you might overlay the file at /libs/cq/gui/components/siteadmin/admin/publishwizard/references/references.jsp and at Line 92, where it fetches the references URL;

"String referencesUrl = cfg.get("referencesURL", "/libs/wcm/core/content/reference.json");"

you can create a custom servlet that will not include dam asset references.

Hope this helps!!!

harishv99010453
Level 2
April 22, 2018

Thanks for the inputs, appreciated. We have a similar kind of discussion.