Expand my Community achievements bar.

Don’t miss the AEM Skill Exchange in SF on Nov 14—hear from industry leaders, learn best practices, and enhance your AEM strategy with practical tips.

AEM /content/campaigns editable template displays classic UI

Avatar

Level 2

We are setting up the integration between Experience Manager en Campaign Standard and would like to use editable templates as we do on our content pages. We are experiencing an issue when creating pages using the newly created template under /content/campaigns, the UI seems to display the classic UI even though we are asking for a touch ui based url: http://localhost:4502/editor.html/content/campaigns/brand/master/en_us/mail.html

jeroenida_0-1632488540767.png

I also see the same issue when I allow + use one of the editable template we used for our regular site pages. How can we resolve this issue?

 

NOTE: all of our editable templates have a core components page resourceSuperType: 

core/wcm/components/page/v2/page

 

2 Replies

Avatar

Community Advisor

Hi @jeroen-ida,

Please check the below official doc for Integration of AEM with Campaign Standard if you haven't checked already (which includes Best practices and Troubleshooting link within)

https://experienceleague.adobe.com/docs/experience-manager-65/administering/integration/campaignstan...

 

For exact and appropriate answer, suggest to raise this query in dedicated community for Campaign Standard. 

https://experienceleaguecommunities.adobe.com/t5/adobe-campaign-standard/ct-p/adobe-campaign-standar...

 

Avatar

Level 2

The official docs has no information on editable templates at all. I find it really weird that the email templates have this weird templating structure, why isn't It supporting editable templates out of the box as it does for the site pages? This is the forum section for AEM right, seems like this is the appropriate part of the forum to get a response as ACS has no direct influence on this issue.

 

According to https://blogs.perficient.com/2017/11/16/no-matter-what-a-anyone-tells-you-theres-no-touchui-under-et... it seems like classic UI is being forced on my page:

 

CQ.WCM.edit({"path":"/content/campaigns/brand/master/en_us/mail/jcr:content/root/responsivegrid/*","type":"wcm/foundation/components/responsivegrid/new","csp":"email-page|page|basicpage/root|responsive-grid-component|responsivegrid/responsive-grid-component|responsivegrid/new|newpar","editConfig":{"actions":["CQ.wcm.EditBase.INSERT"],"disableTargeting":true}});

 

Is there a way to prevent this from happening?

EDIT: I found the bundle/jar where the code is forcing me to use classic UI:

 

AuthoringUIModeServiceImpl

 

if ("html".equals(slingRequest.getRequestPathInfo().getExtension()) && resource.adaptTo(Page.class) != null && path.startsWith("/content/campaigns")) {
Resource content = resource.getChild("jcr:content");
List<String> excludeClassicUITypes = Arrays.asList("wcm/designimporter/components/importerpage", "cq/personalization/components/teaserpage", "cq/personalization/components/offerproxy", "mcm/campaign/components/newsletter", "mcm/campaign/components/campaign_newsletterpage", "mcm/campaign/components/profile");
boolean forceClassic = true;
Iterator var13 = excludeClassicUITypes.iterator();

 

This code is far from optimal in my opinion, what is the suggested fix, should I create a service with a lower ranking?