Place component placeholder to the right of the existing component | Community
Skip to main content
Level 2
Feb 27, 2019 10:38 AM UTC

Place component placeholder to the right of the existing component

Hi

I have a requirement to place the new component placeholder to the right of existing component  like shown in the image.

Is it possible to achieve this behavior?

Thanks

Denny

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

5 replies

Level 2
Feb 27, 2019 3:52 PM UTC

Hi,

Adding some more details

Following is the jsp code from my component

<%@page session="false"%><%@ page

import="com.day.cq.wcm.foundation.Placeholder"%>

<%@include file="/libs/foundation/global.jsp"%>

<div class="row" style="border: 1px solid red">

<div class="col-xs-12">

<cq:include path="input-items" resourceType="foundation/components/parsys" />

</div>

</div>

and the component is rendered as below

Is there any way to add one more class to the div which wraps the parsys?

<div class="input-items parsys">

Thanks

Translate
smacdonald2008
Level 10
Feb 27, 2019 4:01 PM UTC

Why are you not using AEM Responsive Grid system? No need to modify divs when using the Responsive Grid to line up components in a column format.

Translate
smacdonald2008
Level 10
Feb 27, 2019 12:25 PM UTC

AEM Support out of the Responsive Grid component that lets you place your components into columns.

Or you can use a custom TOUCH UI Grid component - as pointed out by Gaurav.

To learn how to use the out of the box Responsive Grid component - go through the entire weekend tutorial - Getting Started with AEM Sites - WKND Tutorial

Translate
Gaurav-Behl
Level 10
Feb 27, 2019 11:55 AM UTC

You need to have a parent container in order to restrict its size to specific columns and then work with 'float' and 'width'. You'd have to restrict the width of your component to certain columns with specific constraints.

Use 'column control' component or create your custom one based on your requirements.

check this - Creating a custom Touch UI Grid Component for Adobe Experience Manager

Translate