我正在尝试为电子邮件页面创建impex。
$ contentCatalog = ShopzoneContentCatalog $ contentCV = catalogVersion(CatalogVersion.catalog(Catalog.id [默认= $ contentCatalog]),CatalogVersion.version [默认=分阶段])[默认= $ contentCatalog:分阶段]
$ jarResourceCms =罐子:com.shopzone.core.setup.CoreSystemSetup&安培; / shopzonecore /资源/ shopzonecore /进口/座舱/ cmscockpit /结构视图 $ emailResource =罐子:com.shopzone.core.setup.CoreSystemSetup&安培; / shopzonecore /资源/ shopzonecore /进口/电子邮件
$ emailPackageName = com.shopzone.facades.process.email.context
INSERT_UPDATE RendererTemplate; code [unique = true]; description [lang = en]; templateScript [lang = en,translator = de.hybris.platform.commerceservices.impex.impl.FileLoaderValueTranslator]; contextClass; rendererType(code)[默认='速度'] ; appointment_notification_email_subject;"约会通知电子邮件主题&#34 ;; $ emailResource / appointment_notification_email_subject.vm; $ emailPackageName.AppointmentEmailContext; ; appointment_notification_email_body;"约会通知电子邮件正文&#34 ;; $ emailResource / appointment_notification_email_body.vm; $ emailPackageName.AppointmentEmailContext;
INSERT_UPDATE EmailPageTemplate; $ contentCV [unique = true]; uid [unique = true]; name; active; frontendTemplateName; subject(code); htmlTemplate(code); restrictedPageTypes(code) ;; appointmentNotificationEmailTemplate;约会通知电子邮件模板; true; appointmentNotificationEmailTemplate; appointment_notification_email_subject; appointment_notification_email_body; EmailPage
UPDATE EmailPageTemplate; $ contentCV [unique = true]; uid [unique = true]; velocityTemplate [translator = de.hybris.platform.commerceservices.impex.impl.FileLoaderValueTranslator] ;; appointmentNotificationEmailTemplate; $ jarResourceCms / structure_appointmentNotificationEmailTemplate.vm
insert_update Media; code [unique = true]; $ contentCV; url; mime [default =' image / jpg']; altText ; szEmailSiteLogoMedia ;; / _ UI /响应/普通/图像/ site_logo.png ;; Shopzone
INSERT_UPDATE CMSImageComponent; $ contentCV [unique = true]; uid [unique = true]; name; media(code,$ contentCV) ;; szEmailSiteLogoImage; Email Site Logo Image; szEmailSiteLogoMedia
UPDATE ContentSlot; $ contentCV [unique = true]; uid [unique = true]; cmsComponents(uid,$ contentCV) ;; szEmailSiteLogoSlot; szEmailSiteLogoImage
INSERT_UPDATE ContentSlotForTemplate; $ contentCV [unique = true]; uid [unique = true]; position [unique = true]; pageTemplate(uid,$ contentCV)[unique = true]; contentSlot(uid,$ contentCV)[unique =真]; allowOverwrite ;; siteLogo-appointmentNotificationEmailTemplate; szSiteLogo; appointmentNotificationEmailTemplate; szEmailSiteLogoSlot;真
INSERT_UPDATE EmailPage; $ contentCV [unique = true]; uid [unique = true]; name; masterTemplate(uid,$ contentCV); defaultPage; approvalStatus(code)[default =' approved']; fromEmail [郎= EN]; FROMNAME [郎= EN] ;; appointmentNotificationEmailPage;约会通知电子邮件; appointmentNotificationEmailTemplate; true ;; estore@shopzone.com;客户服务团队
错误:
INSERT_UPDATE RendererTemplate; code [unique = true]; description [lang = en]; templateScript [lang = en,translator = de.hybris.platform.commerceservices.impex.impl.FileLoaderValueTranslator]; contextClass; rendererType(code)[默认='速度'] ,8796125836191 ,,,第3栏:无法解析价值&#;; jar:com.shopzone.core.setup.CoreSystemSetup& /shopzonecore/resources/shopzonecore/import/emails/appointment_notification_email_body.vm'对于属性' templateScript',第3列:无法解析值&#;; jar:com.shopzone.core.setup.CoreSystemSetup& /shopzonecore/resources/shopzonecore/import/emails/appointment_notification_email_body.vm' for attribute' templateScript'; appointment_notification_email_body;约会通知电子邮件正文; jar:com.shopzone.core.setup.CoreSystemSetup& /shopzonecore/resources/shopzonecore/import/emails/appointment_notification_email_body.vm; com.shopzone.facades .process.email.context.AppointmentEmailContext; ,8796125868959 ,,,第3栏:无法解析价值&#;; jar:com.shopzone.core.setup.CoreSystemSetup& /shopzonecore/resources/shopzonecore/import/emails/appointment_notification_email_subject.vm'对于属性' templateScript',第3列:无法解析值&#;; jar:com.shopzone.core.setup.CoreSystemSetup& /shopzonecore/resources/shopzonecore/import/emails/appointment_notification_email_subject.vm' for attribute' templateScript'; appointment_notification_email_subject;约会通知电子邮件主题; jar:com.shopzone.core.setup.CoreSystemSetup& /shopzonecore/resources/shopzonecore/import/emails/appointment_notification_email_subject.vm; com.shopzone.facades .process.email.context.AppointmentEmailContext;
UPDATE EmailPageTemplate; catalogVersion(CatalogVersion.catalog(Catalog.id [default = ShopzoneContentCatalog]),CatalogVersion.version [default = Staged])[default = ShopzoneContentCatalog:Staged] [unique = true]; uid [unique = true] ; velocityTemplate [翻译= de.hybris.platform.commerceservices.impex.impl.FileLoaderValueTranslator] ,8796420736052 ,,,第3栏:无法解析价值&#;; jar:com.shopzone.core.setup.CoreSystemSetup& /shopzonecore/resources/shopzonecore/import/cockpits/cmscockpit/structure-view/structure_appointmentNotificationEmailTemplate.vm'对于属性' velocityTemplate',第3列:无法解析值' jar:com.shopzone.core.setup.CoreSystemSetup& / shopzonecore / resources / shopzonecore / import / cockpits / cmscockpit / structure-view / structure_appointmentNotificationEmailTemplate.vm' for attribute' velocityTemplate' ;; appointmentNotificationEmailTemplate; jar:com.shopzone.core.setup.CoreSystemSetup& /shopzonecore/resources/shopzonecore/import/cockpits/cmscockpit/structure-view/structure_appointmentNotificationEmailTemplate.vm
UPDATE ContentSlot; catalogVersion(CatalogVersion.catalog(Catalog.id [default = ShopzoneContentCatalog]),CatalogVersion.version [default = Staged])[default = ShopzoneContentCatalog:Staged] [unique = true]; uid [unique = true] ; cmsComponents(UID,catalogVersion(CatalogVersion.catalog(Catalog.id [默认= ShopzoneContentCatalog]),CatalogVersion.version [默认=分阶段])[默认= ShopzoneContentCatalog:分段]) ,,,找不到更新的现有项目;; szEmailSiteLogoSlot; szEmailSiteLogoImage
INSERT_UPDATE ContentSlotForTemplate; catalogVersion(CatalogVersion.catalog(Catalog.id [default = ShopzoneContentCatalog]),CatalogVersion.version [default = Staged])[default = ShopzoneContentCatalog:Staged] [unique = true]; uid [unique = true] ;位置[独特=真]; pageTemplate(UID,catalogVersion(CatalogVersion.catalog(Catalog.id [默认= ShopzoneContentCatalog]),CatalogVersion.version [默认=分阶段])[默认= ShopzoneContentCatalog:分阶段])[独特=真] ; contentSlot(UID,catalogVersion(CatalogVersion.catalog(Catalog.id [默认= ShopzoneContentCatalog]),CatalogVersion.version [默认=分阶段])[默认= ShopzoneContentCatalog:分阶段])[独特=真]; allowOverwrite ,,,查找现有项目的错误:column =' contentSlot' value =' szEmailSiteLogoSlot',第5列:无法解析szEmailSiteLogoSlot的项目;; siteLogo-appointmentNotificationEmailTemplate; szSiteLogo; appointmentNotificationEmailTemplate; szEmailSiteLogoSlot; true
02.11.2017 15:35:02:错误:无法解决更多行...中止进一步传球(在第2轮)。最后无法导入5行! 02.11.2017 15:35:02:错误:无法解决任何更多的线路...中止更多传球(在传球2)。最后无法导入5行!
答案 0 :(得分:1)
引用文件时,需要以“resources”目录作为根目录引用它们。
$ jarResourceCms = jar:com.shopzone.core.setup.CoreSystemSetup& / shopzonecore / import / cockpits / cmscockpit / structure-view $ emailResource = jar:com.shopzone.core.setup.CoreSystemSetup& / shopzonecore / import /电子邮件