Editable templates under /content/campaign | Community
Skip to main content
gyorgyb62452513
Level 2
August 22, 2017

Editable templates under /content/campaign

  • August 22, 2017
  • 1 reply
  • 7930 views

Hi,

According to our recent investigation Template editor does not work on pages created under /content/campaign.

AEM injects code into the markup that makes the page incompatible with the editable templates. By decompiling several java classes, I found that pages under /content/campaigns are processed by AEM differently than other content pages (path.startsWith("/content/campaigns") found in AEM's code).

Investigated on AEM 6.2. Is there a hot-fix / feature pack fixing this issue?

Thank you.

Best regards,

Gyorgy

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

1 reply

kautuk_sahni
Community Manager
Community Manager
August 23, 2017

I would request you to create a daycare ticket for this.

~kautuk

Kautuk Sahni
Kornel_Keseru
Level 3
September 3, 2017

We found a way to implement editable templates for emails with AEM's Template Editor to create emails under /content/campaign, but there were several lessons learnt.

  • The OOTB page component (wcm/foundation/components/page) and the layout container component support the use of the template editor out of the box. On the other hand, the OOTB campaign newsletter page component doesn't support the template editor, but this page component provides other features that are necessary to make campaign emails. From these two OOTB page components it is possible to create a template editor compatible newsletter page component. The key is the body.html of the OOTB page component, which contains code to include the structure components. Additionally, there are overrides in the OOTB newsletter page template (e.g. body.js) that has to be copied over from the foundation page component.
  • The Template Editor doesn't work with the campaign parsys component, so we decided to go with the layout container, but most of its features were removed, since we have to keep strict restrictions on our markup and css features recommended for email client compatibility.
  • The resource type of the OOTB newsletter page component has to be used as resource super type for any custom newsletter template created, otherwise pages created under /content/campaigns will open on the classic UI (even if my preferred interface is the touch UI).
  • It is worth calling out, that linking the email with a campaign delivery and syncing the content with ACS will only work if the resource super type of my template is the OOTB newsletter page. The POST requests issued from ACS to AEM aren't responded properly in any other case (probably the handler is tied to resource type).
  • When this is all done, one have to setup a template definition carefully.

Using our Template Editor enabled newsletter page component we can design editable templates for emails and create emails from them under /content/campaigns.

Level 2
October 11, 2019

Hi Kornel,

We are planning to use Editable templates for Adobe Campaign pages, Can you please briefly explain the steps clearly , so we will follow to achieve this?

Thanks,

NAveen