Posts

Showing posts from March, 2019
AEM Hide Images in Asset finder for NDA/Secret projects In order to hide images from asset finder we need to overwrite below file to /apps /libs/cq/gui/components/authoring/assetfinder/asset/asset.jsp We can create a folder and any images available under that folder can be ignored while displaying in asset finder tab using below code boolean showimage = true; if(imgSrc.indexOf("/internal_image/") > -1) {     showimage = false; } if(request.getQueryString().indexOf("internal_image") > -1 && xssAPI.encodeForHTMLAttr(imgSrc).indexOf("/internal_image/") > -1) {     showimage = true; } if(showimage) { %>  Leave code as is provided by Adobe <% } %> Code Explanation: Below code will remove the image if it is present under internal_image folder if(imgSrc.indexOf("/internal_image/") > -1) {     showimage = false; } In order to display the images for using in components, authors who are awar

AEM 6.2 SP1 communities QnA feature not working

Recently I tried QnA feature in Adobe Communities but the functionality is not working correctly. There is a js error which is blocking the functionality to work. JS Error /etc/clientlibs/social/commons/scf/scf.js - line no 357 getForm: function(form) {             return this._forms[form]; } In above code this._forms is coming as null and breaking the QnA functionality Modified above code as below to fix js error  getForm: function(form) {             if (typeof this._forms === 'undefined') {                 return null;             } else {                 return this._forms[form];             }         } QnA is working fine after making above changes and seems the issue is present in AEM 6.2 SP1 CFP 18, CFP 19. Updated adobe with above fix