Expand my Community achievements bar.

SOLVED

Handling responsive design when using custom column control component

Avatar

Level 3

Hi All,

Version : CQ5.6.1

In order to reduce the number of templates and allow teh authors some flexibility when creating teh pages we are planning to use a custom column control component(as suggested on some best practices forums). We following the guide

Steps to create a custom Column Control component:

  • Create a new component named, “Page Division – Column Control”
  • Add a drop-down to your dialog with the various combinations of page divisions

column-control-1

  • Add a DIV for each column represented by each selection in your component JSP
  • Add a Paragraph System to each DIV in the component code to allow nesting.
<div class=”col-33″>
        <cq:include path=”right-par” resourceType=”foundation/components/parsys” />
</div>
  • Add a style class for each entry in the drop-down in your CSS

 

I have some concerns with this aproach especially around responsivness. Will this aproach work with a responsive framework such as bootstrap?

1 Accepted Solution

Avatar

Correct answer by
Employee

It will work as long has you have the media queries for each ui size and corresponding values for the same classes. Also,please look at http://adobe-consulting-services.github.io/acs-aem-commons/features/responsive-column-control.html for a more configurable column control. In the next AEM release, there is a far better grid component which will handle your use case.

View solution in original post

1 Reply

Avatar

Correct answer by
Employee

It will work as long has you have the media queries for each ui size and corresponding values for the same classes. Also,please look at http://adobe-consulting-services.github.io/acs-aem-commons/features/responsive-column-control.html for a more configurable column control. In the next AEM release, there is a far better grid component which will handle your use case.