- Issue created by @kensae
- Merge request !71Search for format key in content array and add all levels above. → (Open) created by kensae
- last update
12 months ago 17 pass
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.
Active
2.2
Campaign Module