Expand my Community achievements bar.

SOLVED

Include view in HTML appears a large space or invisible block in Newsletter

Avatar

Level 2

Hello, 

 

The Newsletter has been created using AEM + synced with AC, when I set the "include view" picture1:

AdobeCampaignProxd_0-1701167368073.png

Personalization block:

AdobeCampaignProxd_1-1701167424095.png

As you can see, there's no <br> or unusual spaces, only a <p>

 

And this is the final output when you get the test in mail:

AdobeCampaignProxd_2-1701167572026.png

What I'm doing wrong. 

 

Thank you guys,

 

 

1 Accepted Solution

Avatar

Correct answer by
Level 2

Hello,

 

It was not about the spaces in the personalization block, that does not matter. I had to delete <p> manually inside the source tab in the HTML template like the picture below:

 

AdobeCampaignProxd_0-1701242956048.pngAdobeCampaignProxd_1-1701243027797.png

Adobe Experience Manager was creating those <p> in the include script.

Thank you.

View solution in original post

9 Replies

Avatar

Community Advisor

Hi @AdobeCampaignProxd 

 

You can once view the code in the personalization block which you are trying to include in the template. 

Also don't try to edit the template from the HTML tab, please use the source tab to make any edits.

 

Regards

Akshay

Avatar

Level 2

Hello @AkshayAnand 

 

I'm not editing the template, just showing you where the include is located in the template.

 

But that's not my question.

Avatar

Community Advisor

Hi @AdobeCampaignProxd 

 

That was my suggestion and a best practice, as stated earlier I would suggest to look into the code of personalization block which is being included in the template for any breaks or spaces.

 

Thanks

Akshay

Avatar

Level 2

As shown in the picture, there's no break and spaces... And I said that in the description before I posted the image

Avatar

Community Advisor

Hi @AdobeCampaignProxd ,

 

Please check the source Tab html code inside the Delivery Template is having any line break's between the "Hola firstname" and the "Personalization Block Declaration".

 

Also try removing extra line spaces in the personalization block, If possible try adding if else loop in single line.

 

Regards,

Pravallika.

 

 

 

 

Avatar

Community Advisor

Hi @AdobeCampaignProxd ,

Modify the personalization block and delivery HTML content as below steps,

Step 1:

In your personalization block, remove the <p> </p> tags in both contents inside the IF and ELSE conditions

ParthaSarathy_0-1701177237337.png

Step-2:

In Delivery, Go to Source tab, and paste the blow script where you want to have your personalized block content

 

<p><%@ include view='internal_name_of_your_personalization_block' %></p>

 

ParthaSarathy_1-1701177599231.png

Now trigger the delivery and check it!

Avatar

Correct answer by
Level 2

Hello,

 

It was not about the spaces in the personalization block, that does not matter. I had to delete <p> manually inside the source tab in the HTML template like the picture below:

 

AdobeCampaignProxd_0-1701242956048.pngAdobeCampaignProxd_1-1701243027797.png

Adobe Experience Manager was creating those <p> in the include script.

Thank you.

Avatar

Community Advisor

@AdobeCampaignProxd 

 

You have a lot of whitespace in the personalization block.

Manoj_Kumar__0-1701237315331.png

 

remove this whitespace and it will work fine.


     Manoj
     Find me on LinkedIn