tag:blogger.com,1999:blog-206145551100712277.post869198525500137554..comments2024-03-25T11:47:58.644-05:00Comments on Experiencing Adobe Experience Manager (AEM, CQ): AEM 6440 - Touch UI Composite Image Multifieldsreekanth choudryhttp://www.blogger.com/profile/15578091428034329691noreply@blogger.comBlogger5125tag:blogger.com,1999:blog-206145551100712277.post-47515121069898181992021-04-05T23:44:00.549-05:002021-04-05T23:44:00.549-05:00Hi Sreekanth Choudry Nalabotu
Can you provide sol...Hi Sreekanth Choudry Nalabotu<br /><br />Can you provide solution for Image Upload feature in multifield in AEM 6.5Bharat Agrawalhttps://www.blogger.com/profile/03659508566562785561noreply@blogger.comtag:blogger.com,1999:blog-206145551100712277.post-41981109355986536402020-07-07T04:13:41.140-05:002020-07-07T04:13:41.140-05:00For AEM 6.5, the code has to be modified a bit. Pl...For AEM 6.5, the code has to be modified a bit. Please use the following code if working on AEM 6.5<br />setName function to be replaced by the following code. Rest all remains as given in the article above.<br /><br /> setName: function(name) {<br /> var prefix = name.substr(0, name.lastIndexOf(el.name));<br /> var oldRootElementName = "";<br /> var newRootElementName = "";<br /> if(prefix == ""){ <br /> oldRootElementName = el.name.substr(0, el.name.lastIndexOf("./"));<br /> newRootElementName = name.substr(0, name.lastIndexOf("./"));<br /> }<br /> el.name = name;<br /> $("input[type='hidden'][data-cq-fileupload-parameter]", el).each(function(i, el) {<br /> if ($(el).data("data-cq-fileupload-parameter") !== "filemovefrom") {<br /> if(prefix == ""){<br /> var currentChildName = this.getAttribute("name");<br /> currentChildName = currentChildName.replace(oldRootElementName,newRootElementName);<br /> this.setAttribute("name", currentChildName);<br /> } else{<br /> this.setAttribute("name", prefix + this.getAttribute("name"));<br /> }<br /> }<br /> });<br /> }Shwetahttps://www.blogger.com/profile/17840463361834559611noreply@blogger.comtag:blogger.com,1999:blog-206145551100712277.post-61675536520322071172020-07-06T01:38:37.048-05:002020-07-06T01:38:37.048-05:00Hi Emrah,
I replaced the setName function to fix t...Hi Emrah,<br />I replaced the setName function to fix the reorder issue but its not working. Can you please suggest?Shwetahttps://www.blogger.com/profile/17840463361834559611noreply@blogger.comtag:blogger.com,1999:blog-206145551100712277.post-7809566497822748162019-11-04T06:27:37.092-06:002019-11-04T06:27:37.092-06:00If you experience order problem like me, you can u...If you experience order problem like me, you can user below code part:<br /><br /> setName: function(name) {<br /> var prefix = name.substr(0, name.lastIndexOf(el.name));<br /> var oldRootElementName = "";<br /> var newRootElementName = "";<br /> if(prefix == ""){<br /> oldRootElementName = el.name.substr(0, el.name.lastIndexOf("./icon"));<br /> newRootElementName = name.substr(0, name.lastIndexOf("./icon"));;<br /> }<br /> el.name = name;<br /> $("input[type='hidden'][data-cq-fileupload-parameter]", el).each(function(i, el) {<br /> if ($(el).data("data-cq-fileupload-parameter") !== "filemovefrom") {<br /> if(prefix == ""){<br /> var currentChildName = this.getAttribute("name");<br /> currentChildName = currentChildName.replace(oldRootElementName,newRootElementName);<br /> this.setAttribute("name", currentChildName);<br /> }else{<br /> this.setAttribute("name", prefix + this.getAttribute("name"));<br /> }<br /> }<br /> });<br /> }Emrah Onderhttps://www.blogger.com/profile/14315756356296034832noreply@blogger.comtag:blogger.com,1999:blog-206145551100712277.post-23547553371139224472019-06-27T00:26:52.851-05:002019-06-27T00:26:52.851-05:00Hi Sreekanth Choudry,
Do you have a similar fix fo...Hi Sreekanth Choudry,<br />Do you have a similar fix for 6.4.2 version? I tried the above provided fix on 6.4.2 but as you mentioned it is working only on 6.4.4.Amulya Prasanthhttps://www.blogger.com/profile/06813120647275364762noreply@blogger.com