Expand my Community achievements bar.

Adding CSS class to parsys

Avatar

Level 3

Hello,

 

I am using AEM 6.2 and including my parsys as a resourceType:

 <div class="customCSSClass" data-sly-resource="${'marginCol' @ resourceType='wcm/foundation/components/parsys'}"></div>

I would like to add a customCSSClass on every component that is added to the parsys. Essentially, I want to create the following markup when a component is added to the parsys:

<div class="customCSSClass">

<!-- component code -->

</div>

Is there a possible way to achieve this?

1 Reply

Avatar

Level 2

Try this :

<div data-sly-resource="${'marginCol' @ resourceType='wcm/foundation/components/parsys', decorationTagName='div',

cssClassName='customCssClass'}"></div>