CMS Development

DM2
Member

{% content_attribute "email_body" %}

SOLVE

Hi  

 

I'm just wondering how to use this attribute correctly in my email template.

 

{% content_attribute "email_body" %}

{% end_content_attribute %}

 

I can see that it defines the area of what is editable, but when I move it to include all the table content in my email template, going back in to edit view I find most of my content has disappeared. Also it would be useful to know if it is mandatory as I could potentially use custom  modeules to define the editable areas instead.

 

Thanks for any advice. 

0 Upvotes
1 Accepted solution
Kevin-C
Solution
Recognized Expert | Partner
Recognized Expert | Partner

{% content_attribute "email_body" %}

SOLVE

Hey @DM2  and thank you @sharonlicari 

 

So your issue may be that you're tryng to make structural elements editable via the content editor. I do not believe that table or table elements are editable in the way you're attempting to edit them via the content editor.

 

Maybe try something along these lines:

 

<tr><td><table><tr><td>

   {% content_attribute "email_body" %}

      <!-- my contents-->

   {% end_content_attribute %}

</td></tr></table></td></tr>

 

Kevin Cornett - Sr. Solutions Architect @ BridgeRev

View solution in original post

4 Replies 4
sharonlicari
Community Manager
Community Manager

{% content_attribute "email_body" %}

SOLVE

Hi @DM2    

 

could you please share the URL you are working on. This will help the experts I will tag so they will be able to advise you.      

 

Hey @prosa @alyssamwilie @Kevin-C   could you please share your knowledge with @DM2 ?

 

Thank you & Happy Friday

Sharon


Did you know that the Community is available in other languages?
Join regional conversations by changing your language settings !




0 Upvotes
DM2
Member

{% content_attribute "email_body" %}

SOLVE

Thanks for the reply 🙂

 

Can't share for NDA reasons but essentially:

 

This arrangement allows me to edit the contents in email editor:

{% content_attribute "email_body" %}

<h1>Title</h1>

<h2>Subtitle</h2>

{% end_content_attribute %}

 

But as soon as there is a table involved I don't seem to be able to edit anything:

 

{% content_attribute "email_body" %}

<tr><td><table><tr><td>

<!-- my contents-->

</td></tr></table></td></tr>

{% end_content_attribute %}

 

Dan

 

0 Upvotes
Kevin-C
Solution
Recognized Expert | Partner
Recognized Expert | Partner

{% content_attribute "email_body" %}

SOLVE

Hey @DM2  and thank you @sharonlicari 

 

So your issue may be that you're tryng to make structural elements editable via the content editor. I do not believe that table or table elements are editable in the way you're attempting to edit them via the content editor.

 

Maybe try something along these lines:

 

<tr><td><table><tr><td>

   {% content_attribute "email_body" %}

      <!-- my contents-->

   {% end_content_attribute %}

</td></tr></table></td></tr>

 

Kevin Cornett - Sr. Solutions Architect @ BridgeRev
DM2
Member

{% content_attribute "email_body" %}

SOLVE

thanks, that makes sense.

0 Upvotes