Minimal support for repeatable sections form a template in campaign submodule

Created on 7 December 2023, 12 months ago

I'm creating a submodule to create a campaign directly from entity content. Therefore I would like to add minimal support for repeatable sections. The value for this sections is stored in an array:

$template_content['repeat_1'][0']['mc_edit_id'] = [
  'value' => 'Some text value'
  'format' => 'some_text_format'
]

Now the mailchimp_campaign_render_template function ony checks for a 'format' key in the first level of the template array.
With some modification we can loop this function recursive and add all levels of the nested content to the api call that sets the campaign content.

I'll add my proposition in a merge request.

Feature request
Status

Active

Version

2.2

Component

Campaign Module

Created by

🇧🇪Belgium kensae

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024