Expand my Community achievements bar.

SOLVED

Issue with Experience Fragments Layout

Avatar

Level 1

I have created an experience fragment on AEM-6.3 as below: 2 layout containers inside the 'root layout container'. Each layout container inturn has an image from dam and some text. The layout containers are placed next to each other - (we retail web variant selected while creating). The experience fragment page looks good as expected.

Screen Shot 2018-03-10 at 12.18.16 PM.png

Now, when i try to consume this experience fragment into a page, the page looks as below:

Images are missing and the Layout is not retained as above. Always the layout container drop one below the other.

Screen Shot 2018-03-10 at 12.18.27 PM.png

This is my dialog box while consuming XF in my page:

Screen Shot 2018-03-10 at 12.27.40 PM.png

Any help is appreciated.

Thanks,

Gayathiri

1 Accepted Solution

Avatar

Correct answer by
Level 10

That is your issue. When you drop a layout container - you need to configure it -- see this doc - we talk about here:

Creating an Adobe Experience Manager project using Lazybones

See this section. Add Structural Components to the Page

You need to drop 2 layout components onto the page and resize it - as shown here:

resize.png

Do this - place two layout onto a new EX

Ex22.png

Then  clicker the outer layer and then the double arrow

Ex33.png

Then that brings you to the layout view. Click the 1st layout and the the double arrow.

Ex44.png

Then you can drag the 1st layout by cicking the ball icon- drag four to the left

Ex55.png

Do the same for the 2nd layout and drag 8 to the right

Ex66.png

Now they will lineup:

Ex88.png

Now you can drop components into each column and they will keep the style - this is what you missed.

View solution in original post

5 Replies

Avatar

Level 10

I just tested this - i built my experience fragment with a layout container with two columns:

EX1.png

As you can see - left has a pic from dam and text and the right has an image from the dam.

When i place the Experience Fragment in a page - it renders perfectly --

EX2.png

Avatar

Level 10

I recommend attempting this on a fresh AEM instance to see 1 of 2 things:

1 - you made a mistake in setting up the layout component

2 - the original instance you used was somehow corrupt.

This works as shown in the above pics.

Avatar

Level 1

Thanks for the response.

I tried this on a fresh instance.. Getting the same issue as before. Like you mentioned, it has to do with the layout container then.

How did you get the 2 columns in the root - layout container?

I tried to drop 2 layout containers inside the root container and then drop the images and text inside them?

Could you please clarify?

Thanks

Avatar

Correct answer by
Level 10

That is your issue. When you drop a layout container - you need to configure it -- see this doc - we talk about here:

Creating an Adobe Experience Manager project using Lazybones

See this section. Add Structural Components to the Page

You need to drop 2 layout components onto the page and resize it - as shown here:

resize.png

Do this - place two layout onto a new EX

Ex22.png

Then  clicker the outer layer and then the double arrow

Ex33.png

Then that brings you to the layout view. Click the 1st layout and the the double arrow.

Ex44.png

Then you can drag the 1st layout by cicking the ball icon- drag four to the left

Ex55.png

Do the same for the 2nd layout and drag 8 to the right

Ex66.png

Now they will lineup:

Ex88.png

Now you can drop components into each column and they will keep the style - this is what you missed.