Expand my Community achievements bar.

Learn about Edge Delivery Services in upcoming GEM session
SOLVED

style customization through a config file

Avatar

Level 2

How can I build a component that allows for customization through a config file so we can control certain styling options without doing development work each time like in other CMS wordpress & drupal ?

1 Accepted Solution

Avatar

Correct answer by
Level 10

See this best practices document for components:

https://helpx.adobe.com/experience-manager/using/best-practices-cq-component-design.html

"Do not define CSS styling in components. This practice keeps components loosely coupled from a styling standpoint and lets you restyle them whenever necessary

Note that component styling is done in CSS - not a config file. You can place CSS in various repository locations. That way - when you want to modify style - update the CSS. 

View solution in original post

1 Reply

Avatar

Correct answer by
Level 10

See this best practices document for components:

https://helpx.adobe.com/experience-manager/using/best-practices-cq-component-design.html

"Do not define CSS styling in components. This practice keeps components loosely coupled from a styling standpoint and lets you restyle them whenever necessary

Note that component styling is done in CSS - not a config file. You can place CSS in various repository locations. That way - when you want to modify style - update the CSS.