Expand my Community achievements bar.

Adobe Summit 2025: AEM Session Recordings Are Live! Missed a session or want to revisit your favorites? Watch the latest recordings now.

Mark Solution

This conversation has been locked due to inactivity. Please create a new post.

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>