Adding dynamic css class on the outer html tag of a component
pain another solution I have thought about is writing a sling component filter.
Thank you!
pain another solution I have thought about is writing a sling component filter.
Thank you!
For the ones who could be stuck on this issue I solved it by implemeting a SlingFilter with COMPONENT scope as described here:
http://stackoverflow.com/questions/26102239/aem-cq-conditional-css-class-on-decoration-tag
One thing to be aware of is to correctly rank our Decorator filter in the order list. It should come after
com.day.cq.wcm.core.impl.WCMComponentFilter
otherwise the custom class id added in the wrong place.
Correct rank order is -100 in AEM 6 SP2.
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.