Campaign Generic Components | Community
Skip to main content
November 18, 2021
Solved

Campaign Generic Components

  • November 18, 2021
  • 2 replies
  • 858 views

Hi, 

I am having trouble figuring out how to add inline styles to Campaign Generic Components 

  • Row - Dual Column 
  • Row - Dual Column Small 
  • Row - Dual Column Flip 
  • Row - Single Column 

 

 

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 TarunKumar

Hi @justinbr17 ,

You can add these styles item in dialog style system and from there you can get it either through model or properties:

 

<sly data-sly-resource="${parRight @ resourceType='wcm/components/parsys/', appendPath='/*', decorationTagName='div', cssClassName="${properties.inlineStyle @ context='styleString'}"></sly>

 


Thanks
Tarun


2 replies

TarunKumar
Community Advisor
TarunKumarCommunity AdvisorAccepted solution
Community Advisor
February 9, 2024

Hi @justinbr17 ,

You can add these styles item in dialog style system and from there you can get it either through model or properties:

 

<sly data-sly-resource="${parRight @ resourceType='wcm/components/parsys/', appendPath='/*', decorationTagName='div', cssClassName="${properties.inlineStyle @ context='styleString'}"></sly>

 


Thanks
Tarun


kautuk_sahni
Community Manager
Community Manager
February 16, 2024

@justinbr17 Did you find the suggestions from users helpful? Please let us know if more information is required. Otherwise, please mark the answer as correct for posterity. If you have found out solution yourself, please share it with the community.

Kautuk Sahni