AEM 6.5 Components | Community
Skip to main content
shikhasoni1
Level 3
March 11, 2022
Solved

AEM 6.5 Components

  • March 11, 2022
  • 3 replies
  • 1155 views

I have an image component which i have dragged on same page two times, i want two different designs for both. How can i achieve that?

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 aniketp1012

Hi Shikha, you can refer Style system for your use case. Please refer this link which explains likewise use case:

https://medium.com/adobetech/using-aem-style-system-to-increase-reusability-of-components-8177c5b65c9e

 

3 replies

DEBAL_DAS
New Member
March 11, 2022

I believe using style system you could achieve this. You need to define styles via component policy as shown below -

 

Then define your styles here as per your requirement -

 

 

Please refer AEM GEEKS style system video , it will help to implement.

Debal Das, Senior AEM Consultant
shikhasoni1
Level 3
March 11, 2022

But style needs to be different for the same component dragged two times in same page. 

 

Using that it will have same style for the component if i will drag and drop it two times in the same page.

Anish-Sinha
Adobe Employee
Adobe Employee
March 11, 2022
aniketp1012Accepted solution
Level 2
March 11, 2022

Hi Shikha, you can refer Style system for your use case. Please refer this link which explains likewise use case:

https://medium.com/adobetech/using-aem-style-system-to-increase-reusability-of-components-8177c5b65c9e