Answers.Body: <p>At this year's Denver sprint or con, Veda consulting demoed a working extension. The core stuff is supported by the upstream editor itself, so I don't think any smarty hacks were required. That's the limit of my knowledge though — I wasn't there. Hopefully we'll get to see it for 4.7 if not before.</p>
  
  <p>Here is the code:
  <a href="https://github.com/veda-consulting/uk.co.vedaconsulting.quickbulkemail" rel="nofollow">https://github.com/veda-consulting/uk.co.vedaconsulting.quickbulkemail</a></p>
  
  <p>It also seems to simplify bulk mailing, but does not appear to be compatible with 4.6.</p>
  
  <p>In 2016, they developed an extension to integrate mosaico.io into civicrm. See more about it here: <a href="https://civicrm.org/blogs/parvez/a-new-beginning-for-civimail%E2%80%A6" rel="nofollow">https://civicrm.org/blogs/parvez/a-new-beginning-for-civimail%E2%80%A6</a></p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-05-07T15:44:20.697Z
Answers.Text: I was at the code sprint and saw this demo.  It fixes a lot of issues with CiviMail, but unfortunately this isn't one of them - this very issue came up.
Answers.UserDisplayName: Jon G - Megaphone Tech
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-05-06T22:06:19.050Z
Answers.LastActivityDate: 2016-02-29T09:07:38.353Z
Answers.LastEditDate: 2016-02-29T09:07:38.353Z
Answers.UserDisplayName: lynxlynxlynx
Answers.Body: <p>You should be able to do this in Smarty via either the "assign" or "capture" custom functions. Check:</p>
  
  <p><a href="http://www.smarty.net/docsv2/en/language.builtin.functions.tpl#language.function.capture" rel="nofollow">http://www.smarty.net/docsv2/en/language.builtin.functions.tpl#language.function.capture</a></p>
  
  <p><a href="http://www.smarty.net/docsv2/en/language.custom.functions.tpl#language.function.assign" rel="nofollow">http://www.smarty.net/docsv2/en/language.custom.functions.tpl#language.function.assign</a></p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-05-06T15:35:25.933Z
Answers.Text: Thanks, I understand what you mean but I do not see that this is a solution for an end user. May be a first approach to improve CiviMail in this way or develop a specific extension?
Answers.UserDisplayName: Francesc Bassas i Bullich
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-05-06T15:46:41.157Z
Answers.Text: yes, agreed. civimail does not have a good template editor like mailchimp and adding one would be a great first step. I think making the template editor programmable, would be the next step.
Answers.UserDisplayName: Donald Lobo
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-05-06T14:55:34.647Z
Answers.LastActivityDate: 2015-05-06T14:55:34.647Z
Answers.UserDisplayName: Donald Lobo
Body: <p>Is there any simple way to replicate sections of email templates (for example, a section corresponding to one story) without having to copy and paste and guard to catch all the tables and other elements in the section?</p>
  
  <p>MailChimp solves it with a property repeatable <a href="http://templates.mailchimp.com/getting-started/template-language/" rel="nofollow">http://templates.mailchimp.com/getting-started/template-language/</a></p>
  
Tags: <civimail><templates>
Title: Is there any simple way to replicate sections in CiviMail message templates?
ThreadText: # Is there any simple way to replicate sections in CiviMail message templates?
  
  (Asked by: username_0 on 2015-05-06)
  
  Is there any simple way to replicate sections of email templates (for example, a section corresponding to one story) without having to copy and paste and guard to catch all the tables and other elements in the section?
  
  MailChimp solves it with a property repeatable <http://templates.mailchimp.com/getting-started/template-language/>
  
  **Tags:** civimail, templates
  
  
  ---
  
  ## 2 answers
  
  ### Answer by username_1 on 2015-05-06. Score: 2
  
  At this year's Denver sprint or con, Veda consulting demoed a working extension. The core stuff is supported by the upstream editor itself, so I don't think any smarty hacks were required. That's the limit of my knowledge though — I wasn't there. Hopefully we'll get to see it for 4.7 if not before.
  
  Here is the code:
  <https://github.com/veda-consulting/uk.co.vedaconsulting.quickbulkemail>
  
  It also seems to simplify bulk mailing, but does not appear to be compatible with 4.6.
  
  In 2016, they developed an extension to integrate mosaico.io into civicrm. See more about it here: <https://civicrm.org/blogs/parvez/a-new-beginning-for-civimail%E2%80%A6>
  
  > **Comments:**
  > **username_2**: I was at the code sprint and saw this demo.  It fixes a lot of issues with CiviMail, but unfortunately this isn't one of them - this very issue came up.  
  
  ---
  
  ### Answer by username_3 on 2015-05-06. Score: 1
  
  You should be able to do this in Smarty via either the "assign" or "capture" custom functions. Check:
  
  <http://www.smarty.net/docsv2/en/language.builtin.functions.tpl#language.function.capture>
  
  <http://www.smarty.net/docsv2/en/language.custom.functions.tpl#language.function.assign>
  
  > **Comments:**
  > **username_0**: Thanks, I understand what you mean but I do not see that this is a solution for an end user. May be a first approach to improve CiviMail in this way or develop a specific extension?  
  > **username_3**: yes, agreed. civimail does not have a good template editor like mailchimp and adding one would be a great first step. I think making the template editor programmable, would be the next step.  
  
  ---
  
  