Expand my Community achievements bar.

Dive into Adobe Summit 2024! Explore curated list of AEM sessions & labs, register, connect with experts, ask questions, engage, and share insights. Don't miss the excitement.
SOLVED

AEM asset on page publish

Avatar

Level 2

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?

1 Accepted Solution

Avatar

Correct answer by
Level 4

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!!!

View solution in original post

2 Replies

Avatar

Correct answer by
Level 4

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!!!

Avatar

Level 2

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