Dropping an image onto component changes resourceType to textImage | Community
Skip to main content
Level 4
January 27, 2016
Solved

Dropping an image onto component changes resourceType to textImage

  • January 27, 2016
  • 2 replies
  • 653 views

Bit of a confusing one: I have a custom component that has a resource super type of the foundation component textImage. It has a smartImage dialog along with some other text fields etc. All is fine when the user drags the component on to the page, right clicks it, selects edit and sets an image through the dialog. However if they drag an image from the left hand panel on to the component it changes the resource type from my custom component to the foundation text image component. If they then right click and go edit they don't see my dialog but instead the textImage one. 

I don't understand why this is the case!! How can dragging an image change a component resource type! 

I'm using AEM 5.6

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 smacdonald2008

Dropping an image into a component will not change the resource type. I would test this on a clean install of CQ. Let us know the results. If it still occurs - send me a package to test at scottm@adobe.com. I have never seen this behaviour. 

2 replies

Jitendra_S_Toma
Level 10
January 27, 2016

Well,

This seems a bug. In my initial guess, it might be happening because of a feature which allows you do drop an image from the content finder and when you do that image component comes along with the image.

Ideally, It should not change component resource type.

Jitendra

smacdonald2008
smacdonald2008Accepted solution
Level 10
January 28, 2016

Dropping an image into a component will not change the resource type. I would test this on a clean install of CQ. Let us know the results. If it still occurs - send me a package to test at scottm@adobe.com. I have never seen this behaviour.