Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

SOLVED

AEM Column creation fr editable template

Avatar

Level 4

I was trying to create columns using the column control component in AEM. It is not having a documentation and the component is not working as  expected. How to solve this issue?

Is there any way to divide the site into a 3 column layout using any of the components in the editable template? suppose I want to divide the page as in the layout below how should be the coding done? Appreciate the help at the earliest.

col1 with some contentscol2 with some contents
col3 with some contents
1 Accepted Solution

Avatar

Correct answer by
Community Advisor

see the below code-snippet.

<div class="container-fluid">

  <h1>Hello World!</h1>

  <p>Resize the browser window to see the effect.</p>

  <p>The columns will automatically stack on top of each other when the screen is less than 768px wide.</p>

  <div class="row">

    <div class="col-sm-4" style="background-color:lavender;">.col-sm-4</div>

    <div class="col-sm-4" style="background-color:lavenderblush;">.col-sm-4</div>

    <div class="col-sm-4" style="background-color:lavender;">.col-sm-4</div>

  </div>

</div>

check this link :::: Tryit Editor v3.6

now put the parys in replace of content written in bold.

<div class="col-sm-4" style="background-color:lavenderblush;">

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

</div>

View solution in original post

0 Replies

Avatar

Community Advisor

What is the CSS framework you are using foryour FE ? is it bootstrap ? If so you can create a custom component something like Creating a custom Touch UI Grid Component for Adobe Experience Manager

Avatar

Community Advisor

In this case, I will go with bootstrap because it is also helpful for responsive design.

while creating a col-cntrl you can also put the parsys there using specific div. so parsys will also behave like that.

Check this article, here we have used the Tab component. so it is also responsive we have used the bootstrap here.

Creating a Tab layout component for Adobe Experience Manager

Avatar

Level 4

can you explain the working of the col control component? It is not actually working or nor can I see it is dividing into columns.

see the screenshot

1710809_pastedImage_0.png

Avatar

Correct answer by
Community Advisor

see the below code-snippet.

<div class="container-fluid">

  <h1>Hello World!</h1>

  <p>Resize the browser window to see the effect.</p>

  <p>The columns will automatically stack on top of each other when the screen is less than 768px wide.</p>

  <div class="row">

    <div class="col-sm-4" style="background-color:lavender;">.col-sm-4</div>

    <div class="col-sm-4" style="background-color:lavenderblush;">.col-sm-4</div>

    <div class="col-sm-4" style="background-color:lavender;">.col-sm-4</div>

  </div>

</div>

check this link :::: Tryit Editor v3.6

now put the parys in replace of content written in bold.

<div class="col-sm-4" style="background-color:lavenderblush;">

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

</div>

Avatar

Community Advisor

Make sure you have all the bootstrap related css and JS included in your page . Then this component will work like magic.