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?
Solved! Go to Solution.
Views
Replies
Total Likes
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!!!
Views
Replies
Total Likes
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!!!
Views
Replies
Total Likes
Thanks for the inputs, appreciated. We have a similar kind of discussion.
Views
Replies
Total Likes
Views
Likes
Replies
Views
Likes
Replies