Skip to Content
0
Dec 13, 2018 at 07:08 PM

How to add a CMSParagraphComponent in an EmailBottomSlot?

860 Views

Hi All,

Any link for this or sample impex is much appreciated.

I want to add a Paragraph Component to an EmailBottomSlot. Currently i'm getting "Couldn't find render template for component [inviteByEmailBottomParagraphComponent] of type [CMSParagraphComponent] in slot [EmailBottomSlot] for site [SiteB2B] during process [RegistrationByInviteEmailProcessModel (8796945055742@2)]. Tried code [SiteB2B-CMSParagraphComponent-template]"

PFB the impex used: $lang=en $wideContent=CMSImageComponent,BannerComponent,CMSParagraphComponent # Import modulegen config properties into impex macros UPDATE GenericItem[processor=de.hybris.platform.commerceservices.impex.impl.ConfigPropertyImportProcessor];pk[unique=true] $jarResourceCms=$config-jarResourceCmsValue $emailPackageName=$config-emailContextPackageName $emailResource=$config-emailResourceValue

INSERT_UPDATE RendererTemplate;code[unique=true];description[lang=$lang];templateScript[lang=$lang,translator=de.hybris.platform.commerceservices.impex.impl.FileLoaderValueTranslator];rendererType(code)[default='velocity'] ;b2b_Registration_Invite_Email_Subject;"Registration Invite Email Subject";$emailResource/email-b2bRegistrationInviteEmailSubject.vm ;b2b_Registration_Invite_Email_Body;" Registration Invite Email Body";$emailResource/email-b2bRegistrationInviteEmailBody.vm

INSERT_UPDATE RendererTemplate;code[unique=true];contextClass;rendererType(code)[default='velocity'] ;b2b_Registration_Invite_Email_Subject;$emailPackageName.RegistrationInviteByEmailContext ;b2b_Registration_Invite_Email_Body;$emailPackageName.RegistrationInviteByEmailContext

CMS components and Email velocity templates

NSERT_UPDATE RendererTemplate;code[unique=true];description[lang=$lang];templateScript[lang=$lang,translator=de.hybris.platform.commerceservices.impex.impl.FileLoaderValueTranslator];rendererType(code)[default='velocity'];contextClass ;registration-CMSParagraphComponent-template;"CMSParagraphComponent Template";$emailResource/email-cmsParagraphComponentTemplate.vm;;java.util.Map

INSERT_UPDATE EmailPageTemplate;$contentCV[unique=true];uid[unique=true];name;active;frontendTemplateName;subject(code);htmlTemplate(code);restrictedPageTypes(code) ;;RegistrationInviteEmailTemplate;Registration Invite Email Template;true;registrationInviteEmail;b2b_Registration_Invite_Email_Subject;b2b_Registration_Invite_Email_Body;EmailPage

INSERT_UPDATE EmailPageTemplate;$contentCV[unique=true];uid[unique=true];velocityTemplate[translator=de.hybris.platform.commerceservices.impex.impl.FileLoaderValueTranslator] ;;RegistrationInviteEmailTemplate;$jarResourceCms/structure-view/structure_registrationInviteEmailTemplate.vm

INSERT_UPDATE ContentSlotName;name[unique=true];template(uid,$contentCV)[unique=true][default='RegistrationInviteEmailTemplate'];validComponentTypes(code) ;SiteLogo;;;logo ;TopContent;;$wideContent; ;BottomContent;;$wideContent;

Create Content Slots

NSERT_UPDATE ContentSlot;$contentCV[unique=true];uid[unique=true];name;active ;;EmailTopSlot;Default Email Top Slot;true ;;EmailBottomSlot;Default Email Bottom Slot;true ;;EmailSiteLogoSlot;Default Email Site Slot;true

INSERT_UPDATE ContentSlotForTemplate;$contentCV[unique=true];uid[unique=true];position[unique=true];pageTemplate(uid,$contentCV)[unique=true][default='RegistrationInviteEmailTemplate'];contentSlot(uid,$contentCV)[unique=true];allowOverwrite ;;SiteLogo-RegistrationInviteEmail;SiteLogo;;EmailSiteLogoSlot;true ;;TopContent-RegistrationInviteEmail;TopContent;;EmailTopSlot;true ;;BottomContent-RegistrationInviteEmail;BottomContent;;EmailBottomSlot;true

Email Pages

NSERT_UPDATE EmailPage;$contentCV[unique=true];uid[unique=true];name;masterTemplate(uid,$contentCV);defaultPage;approvalStatus(code)[default='approved'] ;;RegistrationInviteEmail;RegistrationInvite Email;RegistrationInviteEmailTemplate;true;

INSERT_UPDATE EmailPage;$contentCV[unique=true];uid[unique=true];fromEmail[lang=$lang];fromName[lang=$lang] ;;RegistrationInviteEmail;"eBusinessSupport-@a.com";"Admin"

Content Slots

NSERT_UPDATE ContentSlot;$contentCV[unique=true];uid[unique=true];cmsComponents(uid,$contentCV) ;;EmailBottomSlot;inviteByEmailBottomParagraphComponent