{% content_attribute "email_body" %}

SOLVE
Regular Contributor

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. 

Reply
0 Upvotes
1 Accepted solution

Accepted Solutions
Solution
Top Advisor | Partner

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>

 

View solution in original post

4 Replies 4
Community Manager

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 @amwilie @Kevin-C   could you please share your knowledge with @DM2 ?

 

Thank you & Happy Friday

Sharon


¿Sabías que la Comunidad está disponible en Español?
¡Participa hoy en conversaciones en el idioma de tu preferencia,cambiando el idioma en tus configuraciones!

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


Reply
0 Upvotes
Regular Contributor

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

 

Reply
0 Upvotes
Solution
Top Advisor | Partner

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>

 

View solution in original post

Regular Contributor

thanks, that makes sense.

Reply
0 Upvotes